You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

601 lines
19 KiB

/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
Vladimír Vondruš <mosra@centrum.cz>
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.
*/
/** @dir magnum/src/Magnum
* @brief Namespace @ref Magnum (part of @ref building "Magnum library")
*/
/** @namespace Magnum
@brief Root namespace
Contains classes for interacting with OpenGL.
This library is built as part of Magnum by default. To use this library with
CMake, you need to find the `Magnum` package and link to the `Magnum::Magnum`
target:
@code{.cmake}
find_package(Magnum REQUIRED)
# ...
target_link_libraries(your-app Magnum::Magnum)
@endcode
Parts of this library are additionally available in a form of
@ref singles "single-header libraries". See @ref building and @ref cmake for
more information.
*/
/** @dir Magnum/Platform
11 years ago
* @brief Namespace @ref Magnum::Platform
*/
/** @namespace Magnum::Platform
@brief Platform-specific application and context creation
Base classes for creating applications with various toolkits.
Parts of this namespace are built if `WITH_*APPLICATION` is enabled when
building Magnum, with each library having specific toolkit dependencies and
platform requirements. To use a particular application library with CMake, you
need to request given `*Application` component of the `Magnum` package and link
to the `Magnum::Application` target. Example using the @ref Platform::Sdl2Application
library:
@code{.cmake}
find_package(Magnum REQUIRED Sdl2Application)
# ...
target_link_libraries(your-app Magnum::Application)
@endcode
See documentation of particular `*Application` classs, the
@ref magnum-gl-info "magnum-gl-info" utility documentation, @ref building,
@ref cmake and @ref platform for more information.
*/
/** @dir Magnum/Math
* @brief Namespace @ref Magnum::Math, @ref Magnum::Math::Literals
*/
/** @namespace Magnum::Math
@brief Math library
Template classes for matrix and vector calculations.
This library is built as part of Magnum by default. To use this library with
CMake, you need to find the `Magnum` package and link to the `Magnum::Magnum`
target:
@code{.cmake}
find_package(Magnum REQUIRED)
# ...
target_link_libraries(your-app Magnum::Magnum)
@endcode
See @ref building, @ref cmake, @ref matrix-vector and @ref transformations for
more information.
@m_class{m-block m-success}
@par Single-header version
This library is also available as a single-header, dependency-less
[MagnumMath.hpp](https://github.com/mosra/magnum-singles/tree/master/MagnumMath.hpp)
library in the Magnum Singles repository for easier integration into your
projects. See @ref singles for more information. Everything except contents
of the @ref Magnum/Math/FunctionsBatch.h and @ref Magnum/Math/Algorithms/Svd.h
headers is included. The library has a separate non-inline implementation
part, enable it *just once* like this:
@par
@code{.cpp}
#define MAGNUM_MATH_IMPLEMENTATION
#include <MagnumMath.hpp>
@endcode
@par
In addition, contents of the @ref GlmIntegration and @ref EigenIntegration
libraries are included as well --- opt-in by specifying either
@cpp #define MAGNUM_MATH_GLM_INTEGRATION @ce or
@cpp #define MAGNUM_MATH_EIGEN_INTEGRATION @ce before including the file.
Including it multiple times with different macros defined works as well.
*/
/** @namespace Magnum::Math::Literals
@brief Math literals
Literals for easy construction of angle and color values.
This library is built as part of Magnum by default. To use this library with
CMake, you need to find the `Magnum` package and link to the `Magnum::Magnum`
target:
@code{.cmake}
find_package(Magnum REQUIRED)
# ...
target_link_libraries(your-app Magnum::Magnum)
@endcode
See @ref building, @ref cmake and @ref types for more information.
@m_class{m-block m-success}
@par Single-header version
This library is available as a part of the single-header, dependency-less
[MagnumMath.hpp](https://github.com/mosra/magnum-singles/tree/master/MagnumMath.hpp)
library in the Magnum Singles repository for easier integration into your
projects. See @ref singles and @ref Math for more information.
*/
/** @dir Magnum/Math/Algorithms
11 years ago
* @brief Namespace @ref Magnum::Math::Algorithms
*/
/** @namespace Magnum::Math::Algorithms
@brief Algorithms
Various matrix and vector algorithms.
This library is built as part of Magnum by default. To use this library with
CMake, you need to find the `Magnum` package and link to the `Magnum::Magnum`
target:
@code{.cmake}
find_package(Magnum REQUIRED)
# ...
target_link_libraries(your-app Magnum::Magnum)
@endcode
See @ref building and @ref cmake for more information.
@m_class{m-block m-success}
@par Single-header version
This library is available as a part of the single-header, dependency-less
[MagnumMath.hpp](https://github.com/mosra/magnum-singles/tree/master/MagnumMath.hpp)
library in the Magnum Singles repository for easier integration into your
projects. See @ref singles and @ref Math for more information.
*/
/** @dir Magnum/Math/Geometry
11 years ago
* @brief Namespace @ref Magnum::Math::Geometry
* @deprecated Use @ref Magnum/Math/Distance.h and
@ref Magnum/Math/Intersection.h instead.
*/
/** @namespace Magnum::Math::Geometry
* @deprecated Use @ref Magnum::Math::Distance and
@ref Magnum::Math::Intersection namespaces instead.
*/
/** @namespace Magnum::Math::Distance
@brief Functions for calculating distances
This library is built as part of Magnum by default. To use this library with
CMake, you need to find the `Magnum` package and link to the `Magnum::Magnum`
target:
@code{.cmake}
find_package(Magnum REQUIRED)
# ...
target_link_libraries(your-app Magnum::Magnum)
@endcode
See @ref building and @ref cmake for more information.
@m_class{m-block m-success}
@par Single-header version
This library is available as a part of the single-header, dependency-less
[MagnumMath.h](https://github.com/mosra/magnum-singles/tree/master/MagnumMath.h)
library in the Magnum Singles repository for easier integration into your
projects. See @ref singles and @ref Math for more information.
*/
/** @namespace Magnum::Math::Intersection
@brief Functions for calculating intersections
This library is built as part of Magnum by default. To use this library with
CMake, you need to find the `Magnum` package and link to the `Magnum::Magnum`
target:
@code{.cmake}
find_package(Magnum REQUIRED)
# ...
target_link_libraries(your-app Magnum::Magnum)
@endcode
See @ref building and @ref cmake for more information.
@m_class{m-block m-success}
@par Single-header version
This library is available as a part of the single-header, dependency-less
[MagnumMath.h](https://github.com/mosra/magnum-singles/tree/master/MagnumMath.h)
library in the Magnum Singles repository for easier integration into your
projects. See @ref singles and @ref Math for more information.
*/
/** @dir Magnum/Animation
* @brief Namespace @ref Magnum::Animation
*/
/** @namespace Magnum::Animation
@brief Keyframe-based animation
This library is built as part of Magnum by default. To use it, you need to
find `Magnum` package and link to `Magnum::Magnum` target. See @ref building,
@ref cmake and @ref animation for more information.
@experimental
*/
/** @dir Magnum/Audio
* @brief Namespace @ref Magnum::Audio, @ref Magnum::Audio::Extensions
*/
/** @namespace Magnum::Audio
@brief Audio playback
Audio import, playback and integration with @ref SceneGraph.
This library depends on the [OpenAL](https://www.openal.org/) library. It is
built if `WITH_AUDIO` is enabled when building Magnum. To use this library with
CMake, you need to copy
[FindOpenAL.cmake](https://github.com/mosra/magnum/blob/master/modules/FindOpenAL.cmake)
from the `modules/` directory in Magnum sources to a `modules/` dir in your
project and pointing `CMAKE_MODULE_PATH` to it (if not done already) so it is
able to correctly find the OpenAL library on all platforms. Then request the
`Audio` component of the `Magnum` package and link to the `Magnum::Audio`
target:
@code{.cmake}
# Path where FindOpenAL.cmake can be found, adapt as needed
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})
find_package(Magnum REQUIRED Audio)
# ...
target_link_libraries(your-app Magnum::Audio)
@endcode
Additional plugins and utilities are built separately. See particular
`Audio::*Importer` class documentation, the @ref magnum-al-info "magnum-al-info"
utility documentation, @ref building, @ref building-plugins, @ref cmake,
@ref cmake-plugins and @ref plugins for more information.
@m_class{m-block m-default}
@thirdparty This library makes use of the [OpenAL](https://www.openal.org/)
API.
*/
/** @dir Magnum/DebugTools
11 years ago
* @brief Namespace @ref Magnum::DebugTools
*/
/** @namespace Magnum::DebugTools
@brief Debug tools
Debugging helpers, renderers and profilers.
This library is built if `WITH_DEBUGTOOLS` is enabled when building Magnum. To
use this library with CMake, you need to request the `DebugTools` component of
the `Magnum` package and link to the `Magnum::DebugTools` target:
@code{.cmake}
find_package(Magnum REQUIRED DebugTools)
# ...
target_link_libraries(your-app Magnum::DebugTools)
@endcode
See @ref building, @ref cmake and @ref debug-tools for more information.
*/
/** @dir Magnum/GL
* @brief Namespace @ref Magnum::GL
*/
/** @namespace Magnum::GL
@brief OpenGL wrapping layer
C++11 wrappers around OpenGL objects with state tracking and transparent
extension support.
All of this library except @ref GL::OpenGLTester is built if `WITH_GL` is
enabled when building Magnum. To use this library with CMake, you need to
request the `GL` component of the `Magnum` package and link to the `Magnum::GL`
target:
@code{.cmake}
find_package(Magnum REQUIRED GL)
# ...
target_link_libraries(your-app Magnum::GL)
@endcode
In case you're building for EGL or OpenGL ES platforms, you also need to copy
[FindEGL.cmake](https://github.com/mosra/magnum/blob/master/modules/FindEGL.cmake),
[FindOpenGLES2.cmake](https://github.com/mosra/magnum/blob/master/modules/FindOpenGLES2.cmake)
or [FindOpenGLES3.cmake](https://github.com/mosra/magnum/blob/master/modules/FindOpenGLES3.cmake)
from the `modules/` directory in Magnum sources to a `modules/` dir in your
project and pointing `CMAKE_MODULE_PATH` to it (if not done already) so it is
able to find the EGL and OpenGL ES libraries:
@code{.cmake}
# Path where FindEGL.cmake and others can be found, adapt as needed
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})
@endcode
See @ref building, @ref cmake and @ref opengl for more information.
@m_class{m-block m-success}
@thirdparty This library makes use of the
[OpenGL](https://www.opengl.org/) and [WebGL](https://www.khronos.org/webgl/)
APIs. In addition, the library uses code generated using
[flextGL](https://github.com/mosra/flextgl), copyright © 2011--2018 Thomas
Weber, licensed under @m_class{m-label m-success} **MIT**
([license text](https://github.com/mosra/flextgl/blog/master/LICENSE),
[choosealicense.com](https://choosealicense.com/licenses/mit/)). It
requires attribution for public use.
*/
/** @dir Magnum/MeshTools
11 years ago
* @brief Namespace @ref Magnum::MeshTools
*/
/** @namespace Magnum::MeshTools
@brief Mesh tools
Tools for generating, optimizing and cleaning meshes.
This library is built if `WITH_MESHTOOLS` is enabled when building Magnum. To
use this library with CMake, you need to request the `MeshTools` component of
the `Magnum` package and link to the `Magnum::MeshTools` target:
@code{.cmake}
find_package(Magnum REQUIRED MeshTools)
# ...
target_link_libraries(your-app Magnum::MeshTools)
@endcode
Note that functionality depending on @ref GL APIs is available only if Magnum
is built with both `WITH_GL` and `TARGET_GL` enabled (which is done by
default).
See @ref building and @ref cmake for more information.
*/
/** @dir Magnum/Primitives
11 years ago
* @brief Namespace @ref Magnum::Primitives
*/
/** @namespace Magnum::Primitives
@brief Primitive library
Basic primitives for testing purposes.
This library is built if `WITH_PRIMITIVES` is enabled when building Magnum. To
use this library with CMake, you need to request the `Primitives` component of
the `Magnum` package and link to the `Magnum::Primitives` target:
@code{.cmake}
find_package(Magnum REQUIRED Primitives)
# ...
target_link_libraries(your-app Magnum::Primitives)
@endcode
See @ref building and @ref cmake for more information.
*/
/** @dir Magnum/SceneGraph
11 years ago
* @brief Namespace @ref Magnum::SceneGraph
*/
11 years ago
/** @namespace Magnum::SceneGraph
@brief Scene graph library
Managing object hierarchy, transformations and interactions.
This library is built if `WITH_SCENEGRAPH` is enabled when building Magnum. To
use this library with CMake, you need to request the `SceneGraph` component of
the `Magnum` package and link to the `Magnum::SceneGraph` target:
@code{.cmake}
find_package(Magnum REQUIRED SceneGraph)
# ...
target_link_libraries(your-app Magnum::SceneGraph)
@endcode
See @ref building, @ref cmake and @ref scenegraph for more information.
*/
/** @dir Magnum/Shaders
11 years ago
* @brief Namespace @ref Magnum::Shaders
*/
/** @namespace Magnum::Shaders
@brief Builtin shaders
14 years ago
Collection of shaders for easy prototyping and basic usage.
This library is built if `WITH_SHADERS` is enabled when building Magnum. To
use this library with CMake, you need to request the `Shaders` component of the
`Magnum` package and link to the `Magnum::Shaders` target:
@code{.cmake}
find_package(Magnum REQUIRED Shaders)
# ...
target_link_libraries(your-app Magnum::Shaders)
@endcode
See @ref building, @ref cmake and @ref shaders for more information.
14 years ago
*/
/** @dir Magnum/Text
11 years ago
* @brief Namespace @ref Magnum::Text
*/
/** @namespace Magnum::Text
@brief Text rendering
Font texture creation and text layout.
This library is built if `WITH_TEXT` is enabled when building Magnum. To use
this library with CMake, you need to request the `Text` component of the
`Magnum` package and link to the `Magnum::Text` target:
@code{.cmake}
find_package(Magnum REQUIRED Text)
# ...
target_link_libraries(your-app Magnum::Text)
@endcode
Additional plugins and utilities are built separately. See particular `*Font`
and `*FontConverter` class documentation, the
@ref magnum-fontconverter "magnum-fontconverter" utility documentation,
@ref building, @ref building-plugins, @ref cmake, @ref cmake-plugins and
@ref plugins for more information.
*/
/** @dir Magnum/TextureTools
11 years ago
* @brief Namespace @ref Magnum::TextureTools
*/
/** @namespace Magnum::TextureTools
@brief Texture tools
Tools for generating, compressing and optimizing textures.
This library is built if `WITH_TEXTURETOOLS` is enabled when building Magnum.
To use this library with CMake, you need to request the `TextureTools`
component of the `Magnum` package in CMake and link to the
`Magnum::TextureTools` target:
@code{.cmake}
find_package(Magnum REQUIRED TextureTools)
# ...
target_link_libraries(your-app Magnum::TextureTools)
@endcode
Note that functionality depending on @ref GL APIs is available only if Magnum
is built with both `WITH_GL` and `TARGET_GL` enabled (which is done by
default).
Additional utilities are built separately. See the
@ref magnum-distancefieldconverter "magnum-distancefieldconverter" utility
documentation, @ref building and @ref cmake for more information.
*/
/** @dir Magnum/Trade
11 years ago
* @brief Namespace @ref Magnum::Trade
*/
/** @namespace Magnum::Trade
@brief Data format exchange
Contains plugin interfaces for importing data of various formats and classes
for direct access to the data.
This library is built if `WITH_TRADE` is enabled when building Magnum. To use
this library with CMake, you need to request the `Trade` component of the
`Magnum` package and link to the `Magnum::Trade` target:
@code{.cmake}
find_package(Magnum REQUIRED Trade)
# ...
target_link_libraries(your-app Magnum::Trade)
@endcode
Additional plugins and utilities are built separately. See particular
`Trade::*Importer` and `*ImageConverter` class documentation, the
@ref magnum-imageconverter "magnum-imageconverter" utility documentation,
@ref building, @ref building-plugins, @ref cmake, @ref cmake-plugins and
@ref plugins for more information.
*/
/** @dir Magnum/Vk
* @brief Namespace @ref Magnum::Vk
*/
/** @namespace Magnum::Vk
@brief Vulkan wrapping layer
C++14 wrappers and helpers for Vulkan development.
This library is built if `WITH_VK` is enabled when building Magnum. To use this
library with CMake, you need to request the `Vk` component of the `Magnum`
package and link to the `Magnum::Vk` target:
@code{.cmake}
find_package(Magnum REQUIRED Vk)
# ...
target_link_libraries(your-app Magnum::Vk)
@endcode
See @ref building, @ref cmake and @ref vulkan for more information.
@m_class{m-block m-success}
@thirdparty This library makes use of the
[Vulkan](https://www.khronos.org/vulkan/) API. In addition, the library
uses code generated using
[flextGL](https://github.com/mosra/flextgl), copyright © 2011--2018 Thomas
Weber, licensed under @m_class{m-label m-success} **MIT**
([license text](https://github.com/mosra/flextgl/blog/master/LICENSE),
[choosealicense.com](https://choosealicense.com/licenses/mit/)). It
requires attribution for public use.
*/
/** @dir magnum/src/MagnumPlugins
* @brief Magnum plugins (part of @ref building "Magnum library")
*/
/** @dir MagnumPlugins/AnyAudioImporter
* @brief Plugin @ref Magnum::Audio::AnyImporter
*/
/** @dir MagnumPlugins/AnyImageConverter
* @brief Plugin @ref Magnum::Trade::AnyImageConverter
*/
/** @dir MagnumPlugins/AnyImageImporter
* @brief Plugin @ref Magnum::Trade::AnyImageImporter
*/
/** @dir MagnumPlugins/AnySceneImporter
* @brief Plugin @ref Magnum::Trade::AnySceneImporter
*/
/** @dir MagnumPlugins/MagnumFont
* @brief Plugin @ref Magnum::Text::MagnumFont
*/
/** @dir MagnumPlugins/MagnumFontConverter
* @brief Plugin @ref Magnum::Text::MagnumFontConverter
*/
/** @dir MagnumPlugins/ObjImporter
* @brief Plugin @ref Magnum::Trade::ObjImporter
*/
/** @dir MagnumPlugins/TgaImageConverter
* @brief Plugin @ref Magnum::Trade::TgaImageConverter
*/
/** @dir MagnumPlugins/TgaImporter
* @brief Plugin @ref Magnum::Trade::TgaImporter
*/
/** @dir MagnumPlugins/WavAudioImporter
* @brief Plugin @ref Magnum::Audio::WavImporter
*/