|
|
|
|
#ifndef Magnum_Trade_AbstractImporter_h
|
|
|
|
|
#define Magnum_Trade_AbstractImporter_h
|
|
|
|
|
/*
|
|
|
|
|
This file is part of Magnum.
|
|
|
|
|
|
|
|
|
|
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
|
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
|
* @brief Class @ref Magnum::Trade::AbstractImporter
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <Corrade/Containers/EnumSet.h>
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
#include <Corrade/Containers/Optional.h>
|
|
|
|
|
#include <Corrade/PluginManager/AbstractManagingPlugin.h>
|
|
|
|
|
|
|
|
|
|
#include "Magnum/Magnum.h"
|
|
|
|
|
#include "Magnum/Trade/Trade.h"
|
|
|
|
|
#include "Magnum/Trade/visibility.h"
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
|
|
|
|
|
#ifdef MAGNUM_BUILD_DEPRECATED
|
|
|
|
|
#include "MagnumExternal/Optional/OptionalWrapper.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
namespace Magnum { namespace Trade {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@brief Base for importer plugins
|
|
|
|
|
|
|
|
|
|
Provides interface for importing 2D/3D scene, mesh, material, texture and image
|
|
|
|
|
data. See @ref plugins for more information and `*Importer` classes in
|
|
|
|
|
@ref Trade namespace for available importer plugins.
|
|
|
|
|
|
|
|
|
|
@section Trade-AbstractImporter-subclassing Subclassing
|
|
|
|
|
|
|
|
|
|
The plugin needs to implement the @ref doFeatures(), @ref doIsOpened()
|
|
|
|
|
functions, at least one of @ref doOpenData() / @ref doOpenFile() / @ref doOpenState()
|
|
|
|
|
functions, function @ref doClose() and one or more tuples of data access
|
|
|
|
|
functions, based on what features are supported in given format.
|
|
|
|
|
|
|
|
|
|
For multi-data formats the file opening shouldn't take long and all parsing
|
|
|
|
|
should be done in the data parsing functions instead, because the user might
|
|
|
|
|
want to import only some data. This is obviously not the case for single-data
|
|
|
|
|
formats like images, as the file contains all the data the user wants to
|
|
|
|
|
import.
|
|
|
|
|
|
|
|
|
|
You don't need to do most of the redundant sanity checks, these things are
|
|
|
|
|
checked by the implementation:
|
|
|
|
|
|
|
|
|
|
- The @ref doOpenData(), @ref doOpenFile() and @ref doOpenState() functions
|
|
|
|
|
are called after the previous file was closed, function @ref doClose() is
|
|
|
|
|
called only if there is any file opened.
|
|
|
|
|
- The @ref doOpenData() function is called only if @ref Feature::OpenData is
|
|
|
|
|
supported.
|
|
|
|
|
- The @ref doOpenState() function is called only if @ref Feature::OpenState
|
|
|
|
|
is supported.
|
|
|
|
|
- All `do*()` implementations working on an opened file are called only if
|
|
|
|
|
there is any file opened.
|
|
|
|
|
- All `do*()` implementations taking data ID as parameter are called only if
|
|
|
|
|
the ID is from valid range.
|
|
|
|
|
|
|
|
|
|
@attention @ref Corrade::Containers::Array instances returned from the plugin
|
|
|
|
|
should *not* use anything else than the default deleter, otherwise this can
|
|
|
|
|
cause dangling function pointer call on array destruction if the plugin
|
|
|
|
|
gets unloaded before the array is destroyed.
|
|
|
|
|
|
|
|
|
|
@todo How to handle casting from std::unique_ptr<> in more convenient way?
|
|
|
|
|
*/
|
|
|
|
|
class MAGNUM_TRADE_EXPORT AbstractImporter: public PluginManager::AbstractManagingPlugin<AbstractImporter> {
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Features supported by this importer
|
|
|
|
|
*
|
|
|
|
|
* @see @ref Features, @ref features()
|
|
|
|
|
*/
|
|
|
|
|
enum class Feature: UnsignedByte {
|
|
|
|
|
/** Opening files from raw data using @ref openData() */
|
|
|
|
|
OpenData = 1 << 0,
|
|
|
|
|
|
|
|
|
|
/** Opening already loaded state using @ref openState() */
|
|
|
|
|
OpenState = 1 << 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** @brief Set of features supported by this importer */
|
|
|
|
|
typedef Containers::EnumSet<Feature> Features;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Plugin interface
|
|
|
|
|
*
|
|
|
|
|
* @code{.cpp}
|
|
|
|
|
* "cz.mosra.magnum.Trade.AbstractImporter/0.3"
|
|
|
|
|
* @endcode
|
|
|
|
|
*/
|
|
|
|
|
static std::string pluginInterface();
|
|
|
|
|
|
|
|
|
|
#ifndef CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT
|
|
|
|
|
/**
|
|
|
|
|
* @brief Plugin search paths
|
|
|
|
|
*
|
|
|
|
|
* First looks in `magnum/importers/` or `magnum-d/importers/` next to
|
|
|
|
|
* the executable and as a fallback in `magnum/importers/` or
|
|
|
|
|
* `magnum-d/importers/` in the runtime install location (`lib[64]/` on
|
|
|
|
|
* Unix-like systems, `bin/` on Windows). The system-wide plugin search
|
|
|
|
|
* directory is configurable using the `MAGNUM_PLUGINS_DIR` CMake
|
|
|
|
|
* variables, see @ref building for more information.
|
|
|
|
|
*
|
|
|
|
|
* Not defined on platforms without
|
|
|
|
|
* @ref CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT "dynamic plugin support".
|
|
|
|
|
*/
|
|
|
|
|
static std::vector<std::string> pluginSearchPaths();
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** @brief Default constructor */
|
|
|
|
|
explicit AbstractImporter();
|
|
|
|
|
|
|
|
|
|
/** @brief Constructor with access to plugin manager */
|
|
|
|
|
explicit AbstractImporter(PluginManager::Manager<AbstractImporter>& manager);
|
|
|
|
|
|
|
|
|
|
/** @brief Plugin manager constructor */
|
|
|
|
|
explicit AbstractImporter(PluginManager::AbstractManager& manager, const std::string& plugin);
|
|
|
|
|
|
|
|
|
|
/** @brief Features supported by this importer */
|
|
|
|
|
Features features() const { return doFeatures(); }
|
|
|
|
|
|
|
|
|
|
/** @brief Whether any file is opened */
|
|
|
|
|
bool isOpened() const { return doIsOpened(); }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Open raw data
|
|
|
|
|
*
|
|
|
|
|
* Closes previous file, if it was opened, and tries to open given
|
|
|
|
|
* file. Available only if @ref Feature::OpenData is supported. Returns
|
|
|
|
|
* @cpp true @ce on success, @cpp false @ce otherwise.
|
|
|
|
|
* @see @ref features(), @ref openFile()
|
|
|
|
|
*/
|
|
|
|
|
bool openData(Containers::ArrayView<const char> data);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Open already loaded state
|
|
|
|
|
* @param state Pointer to importer-specific state
|
|
|
|
|
* @param filePath Base file directory for opening external data like
|
|
|
|
|
* textures and materials.
|
|
|
|
|
*
|
|
|
|
|
* Closes previous file, if it was opened, and tries to open given
|
|
|
|
|
* state. Available only if @ref Feature::OpenState is supported. Returns
|
|
|
|
|
* @cpp true @ce on success, @cpp false @ce otherwise.
|
|
|
|
|
*
|
|
|
|
|
* See documentation of a particular plugin for more information about
|
|
|
|
|
* type and contents of the @p state parameter.
|
|
|
|
|
* @see @ref features(), @ref openData()
|
|
|
|
|
*/
|
|
|
|
|
bool openState(const void* state, const std::string& filePath = {});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Open file
|
|
|
|
|
*
|
|
|
|
|
* Closes previous file, if it was opened, and tries to open given
|
|
|
|
|
* file. Returns @cpp true @ce on success, @cpp false @ce otherwise.
|
|
|
|
|
* @see @ref features(), @ref openData()
|
|
|
|
|
*/
|
|
|
|
|
bool openFile(const std::string& filename);
|
|
|
|
|
|
|
|
|
|
/** @brief Close file */
|
|
|
|
|
void close();
|
|
|
|
|
|
|
|
|
|
/** @{ @name Data accessors
|
|
|
|
|
* Each function tuple provides access to given data.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Default scene
|
|
|
|
|
*
|
|
|
|
|
* When there is more than one scene, returns ID of the default one.
|
|
|
|
|
* If there is no default scene, returns @cpp -1 @ce.
|
|
|
|
|
*
|
|
|
|
|
* @note The function is not const, because the value will probably
|
|
|
|
|
* be lazy-populated.
|
|
|
|
|
*/
|
|
|
|
|
Int defaultScene();
|
|
|
|
|
|
|
|
|
|
/** @brief Scene count */
|
|
|
|
|
UnsignedInt sceneCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Scene ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no scene for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref sceneName()
|
|
|
|
|
*/
|
|
|
|
|
Int sceneForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Scene name
|
|
|
|
|
* @param id Scene ID, from range [0, @ref sceneCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref sceneForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string sceneName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Scene
|
|
|
|
|
* @param id Scene ID, from range [0, @ref sceneCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given scene or @ref Containers::NullOpt if import failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<SceneData> scene(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Light count */
|
|
|
|
|
UnsignedInt lightCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Light ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no light for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref lightName()
|
|
|
|
|
*/
|
|
|
|
|
Int lightForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Light name
|
|
|
|
|
* @param id Light ID, from range [0, @ref lightCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref lightForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string lightName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Light
|
|
|
|
|
* @param id Light ID, from range [0, @ref lightCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given light or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<LightData> light(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Camera count */
|
|
|
|
|
UnsignedInt cameraCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Camera ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no camera for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref cameraName()
|
|
|
|
|
*/
|
|
|
|
|
Int cameraForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Camera name
|
|
|
|
|
* @param id Camera ID, from range [0, @ref cameraCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref cameraForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string cameraName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Camera
|
|
|
|
|
* @param id Camera ID, from range [0, @ref cameraCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given camera or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<CameraData> camera(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Two-dimensional object count */
|
|
|
|
|
UnsignedInt object2DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional object ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no scene for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref object2DName()
|
|
|
|
|
*/
|
|
|
|
|
Int object2DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional object name
|
|
|
|
|
* @param id Object ID, from range [0, @ref object2DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref object2DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string object2DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional object
|
|
|
|
|
* @param id Object ID, from range [0, @ref object2DCount()).
|
|
|
|
|
*
|
|
|
|
|
* Returns given object or `nullptr` if importing failed.
|
|
|
|
|
*/
|
|
|
|
|
std::unique_ptr<ObjectData2D> object2D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Three-dimensional object count */
|
|
|
|
|
UnsignedInt object3DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional object ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no scene for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref object3DName()
|
|
|
|
|
*/
|
|
|
|
|
Int object3DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional object name
|
|
|
|
|
* @param id Object ID, from range [0, @ref object3DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref object3DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string object3DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional object
|
|
|
|
|
* @param id Object ID, from range [0, @ref object3DCount()).
|
|
|
|
|
*
|
|
|
|
|
* Returns given object or `nullptr` if importing failed.
|
|
|
|
|
*/
|
|
|
|
|
std::unique_ptr<ObjectData3D> object3D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Two-dimensional mesh count */
|
|
|
|
|
UnsignedInt mesh2DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional mesh ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no mesh for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref mesh2DName()
|
|
|
|
|
*/
|
|
|
|
|
Int mesh2DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional mesh name
|
|
|
|
|
* @param id Mesh ID, from range [0, @ref mesh2DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref mesh2DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string mesh2DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional mesh
|
|
|
|
|
* @param id Mesh ID, from range [0, @ref mesh2DCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given mesh or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<MeshData2D> mesh2D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Three-dimensional mesh count */
|
|
|
|
|
UnsignedInt mesh3DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional mesh ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no mesh for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref mesh3DName()
|
|
|
|
|
*/
|
|
|
|
|
Int mesh3DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional mesh name
|
|
|
|
|
* @param id Mesh ID, from range [0, @ref mesh3DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref mesh3DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string mesh3DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional mesh
|
|
|
|
|
* @param id Mesh ID, from range [0, @ref mesh3DCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given mesh or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<MeshData3D> mesh3D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Material count */
|
|
|
|
|
UnsignedInt materialCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Material ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no material for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref materialName()
|
|
|
|
|
*/
|
|
|
|
|
Int materialForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Material name
|
|
|
|
|
* @param id Material ID, from range [0, @ref materialCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref materialForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string materialName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Material
|
|
|
|
|
* @param id Material ID, from range [0, @ref materialCount()).
|
|
|
|
|
*
|
|
|
|
|
* Returns given material or `nullptr` if importing failed.
|
|
|
|
|
*/
|
|
|
|
|
std::unique_ptr<AbstractMaterialData> material(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Texture count */
|
|
|
|
|
UnsignedInt textureCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Texture ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no texture for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref textureName()
|
|
|
|
|
*/
|
|
|
|
|
Int textureForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Texture name
|
|
|
|
|
* @param id Texture ID, from range [0, @ref textureCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref textureForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string textureName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Texture
|
|
|
|
|
* @param id Texture ID, from range [0, @ref textureCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given texture or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<TextureData> texture(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief One-dimensional image count */
|
|
|
|
|
UnsignedInt image1DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief One-dimensional image ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no image for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref image1DName()
|
|
|
|
|
*/
|
|
|
|
|
Int image1DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief One-dimensional image name
|
|
|
|
|
* @param id Image ID, from range [0, @ref image1DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref image1DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string image1DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief One-dimensional image
|
|
|
|
|
* @param id Image ID, from range [0, @ref image1DCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given image or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<ImageData1D> image1D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Two-dimensional image count */
|
|
|
|
|
UnsignedInt image2DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional image ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no image for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref image2DName()
|
|
|
|
|
*/
|
|
|
|
|
Int image2DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional image name
|
|
|
|
|
* @param id Image ID, from range [0, @ref image2DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref image2DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string image2DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional image
|
|
|
|
|
* @param id Image ID, from range [0, @ref image2DCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given image or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<ImageData2D> image2D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Three-dimensional image count */
|
|
|
|
|
UnsignedInt image3DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional image ID for given name
|
|
|
|
|
*
|
|
|
|
|
* If no image for given name exists, returns @cpp -1 @ce.
|
|
|
|
|
* @see @ref image3DName()
|
|
|
|
|
*/
|
|
|
|
|
Int image3DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional image name
|
|
|
|
|
* @param id Image ID, from range [0, @ref image3DCount()).
|
|
|
|
|
*
|
|
|
|
|
* @see @ref image3DForName()
|
|
|
|
|
*/
|
|
|
|
|
std::string image3DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional image
|
|
|
|
|
* @param id Image ID, from range [0, @ref image3DCount()).
|
|
|
|
|
*
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
* Returns given image or @ref Containers::NullOpt if importing failed.
|
|
|
|
|
*/
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
Containers::Optional<ImageData3D> image3D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/*@}*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Plugin-specific access to internal importer state
|
|
|
|
|
*
|
|
|
|
|
* The importer might provide access to its internal data structures
|
|
|
|
|
* for currently opened document through this function. See
|
|
|
|
|
* documentation of a particular plugin for more information about
|
|
|
|
|
* returned type and contents. Returns `nullptr` by default.
|
|
|
|
|
* @see @ref AbstractMaterialData::importerState(),
|
|
|
|
|
* @ref CameraData::importerState(), @ref ImageData::importerState(),
|
|
|
|
|
* @ref MeshData2D::importerState(), @ref MeshData3D::importerState(),
|
|
|
|
|
* @ref ObjectData2D::importerState(), @ref ObjectData3D::importerState(),
|
|
|
|
|
* @ref SceneData::importerState(), @ref TextureData::importerState()
|
|
|
|
|
*/
|
|
|
|
|
const void* importerState() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref openFile()
|
|
|
|
|
*
|
|
|
|
|
* If @ref Feature::OpenData is supported, default implementation opens
|
|
|
|
|
* the file and calls @ref Magnum::Trade::AbstractImporter::doOpenData() "doOpenData()"
|
|
|
|
|
* with its contents. It is allowed to call this function from your
|
|
|
|
|
* @ref Magnum::Trade::AbstractImporter::doOpenFile() "doOpenFile()"
|
|
|
|
|
* implementation.
|
|
|
|
|
*/
|
|
|
|
|
virtual void doOpenFile(const std::string& filename);
|
|
|
|
|
|
|
|
|
|
#ifndef DOXYGEN_GENERATING_OUTPUT
|
|
|
|
|
private:
|
|
|
|
|
#else
|
|
|
|
|
protected:
|
|
|
|
|
#endif
|
|
|
|
|
/** @brief Implementation for @ref features() */
|
|
|
|
|
virtual Features doFeatures() const = 0;
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref isOpened() */
|
|
|
|
|
virtual bool doIsOpened() const = 0;
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref openData() */
|
|
|
|
|
virtual void doOpenData(Containers::ArrayView<const char> data);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref openState() */
|
|
|
|
|
virtual void doOpenState(const void* state, const std::string& filePath);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref close() */
|
|
|
|
|
virtual void doClose() = 0;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref defaultScene()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doDefaultScene();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref sceneCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doSceneCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref sceneForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doSceneForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref sceneName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doSceneName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref scene() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<SceneData> doScene(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref lightCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doLightCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref lightForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doLightForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref lightName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doLightName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref light() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<LightData> doLight(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref cameraCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doCameraCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref cameraForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doCameraForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref cameraName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doCameraName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref camera() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<CameraData> doCamera(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref object2DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doObject2DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref object2DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doObject2DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref object2DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doObject2DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref object2D() */
|
|
|
|
|
virtual std::unique_ptr<ObjectData2D> doObject2D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref object3DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doObject3DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref object3DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doObject3DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref object3DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doObject3DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref object3D() */
|
|
|
|
|
virtual std::unique_ptr<ObjectData3D> doObject3D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref mesh2DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doMesh2DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref mesh2DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doMesh2DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref mesh2DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doMesh2DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref mesh2D() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<MeshData2D> doMesh2D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref mesh3DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doMesh3DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref mesh3DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doMesh3DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref mesh3DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doMesh3DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref mesh3D() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<MeshData3D> doMesh3D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref materialCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doMaterialCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref materialForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doMaterialForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref materialName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doMaterialName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref material() */
|
|
|
|
|
virtual std::unique_ptr<AbstractMaterialData> doMaterial(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref textureCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doTextureCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref textureForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doTextureForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref textureName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doTextureName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref texture() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<TextureData> doTexture(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image1DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doImage1DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image1DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doImage1DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image1DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doImage1DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref image1D() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<ImageData1D> doImage1D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image2DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doImage2DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image2DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doImage2DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image2DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doImage2DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref image2D() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<ImageData2D> doImage2D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image3DCount()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp 0 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual UnsignedInt doImage3DCount() const;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image3DForName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns @cpp -1 @ce.
|
|
|
|
|
*/
|
|
|
|
|
virtual Int doImage3DForName(const std::string& name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Implementation for @ref image3DName()
|
|
|
|
|
*
|
|
|
|
|
* Default implementation returns empty string.
|
|
|
|
|
*/
|
|
|
|
|
virtual std::string doImage3DName(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref image3D() */
|
Converting APIs returning std::optional to Containers::Optional.
And removing the bundled std::optional implementation. This finally
makes this library compatible with C++17. Since this would be a huge
backwards-incompatible change that would make everyone angry, the
following had to be done in case both CORRADE_BUILD_DEPRECATED and
MAGNUM_BUILD_DEPRECATED is defined:
* Under C++11 and C++14, Containers::Optional / Containers::NullOpt is
aliased to std::optional / std::nullopt. This is no worse than the
state before, when we also provided these symbols.
* Under C++17, where standard <optional> header is available,
Containers::Optional provides implicit conversion to it. Only one-way
conversion is supported, as there was fortunately no Magnum API that
took std::optional via parameter, and there might be some corner
cases that this doesn't cover. The goal is to have all examples
compiling with the old API, at least.
* There's a new test especially for this, which checks that both the
C++11 and C++17 ways of doing things work as they should.
The typedef and conversion is marked as deprecated, so it will spit out
many warnings to push users to upgrade. I hope I can completely remove
this mess soon :/
8 years ago
|
|
|
virtual Containers::Optional<ImageData3D> doImage3D(UnsignedInt id);
|
|
|
|
|
|
|
|
|
|
/** @brief Implementation for @ref importerState() */
|
|
|
|
|
virtual const void* doImporterState() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
CORRADE_ENUMSET_OPERATORS(AbstractImporter::Features)
|
|
|
|
|
|
|
|
|
|
/** @debugoperatorclassenum{AbstractImporter,AbstractImporter::Feature} */
|
|
|
|
|
MAGNUM_TRADE_EXPORT Debug& operator<<(Debug& debug, AbstractImporter::Feature value);
|
|
|
|
|
|
|
|
|
|
/** @debugoperatorclassenum{AbstractImporter,AbstractImporter::Features} */
|
|
|
|
|
MAGNUM_TRADE_EXPORT Debug& operator<<(Debug& debug, AbstractImporter::Features value);
|
|
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
#endif
|