|
|
|
|
@ -118,10 +118,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* @note The function is not const, because the value will probably |
|
|
|
|
* be lazy-populated. |
|
|
|
|
*/ |
|
|
|
|
virtual inline int defaultScene() { return -1; } |
|
|
|
|
virtual inline std::int32_t defaultScene() { return -1; } |
|
|
|
|
|
|
|
|
|
/** @brief %Scene count */ |
|
|
|
|
virtual inline unsigned int sceneCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t sceneCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Scene ID for given name |
|
|
|
|
@ -129,7 +129,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no scene for given name exists, returns -1. |
|
|
|
|
* @see SceneData::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int sceneForName(const std::string& name); |
|
|
|
|
virtual std::int32_t sceneForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Scene |
|
|
|
|
@ -137,10 +137,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given scene or nullptr, if no such scene exists. |
|
|
|
|
*/ |
|
|
|
|
virtual SceneData* scene(unsigned int id); |
|
|
|
|
virtual SceneData* scene(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief %Light count */ |
|
|
|
|
virtual inline unsigned int lightCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t lightCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Light ID for given name |
|
|
|
|
@ -148,7 +148,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no light for given name exists, returns -1. |
|
|
|
|
* @see LightData::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int lightForName(const std::string& name); |
|
|
|
|
virtual std::int32_t lightForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Light |
|
|
|
|
@ -156,10 +156,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given light or nullptr, if no such light exists. |
|
|
|
|
*/ |
|
|
|
|
virtual LightData* light(unsigned int id); |
|
|
|
|
virtual LightData* light(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief %Camera count */ |
|
|
|
|
virtual inline unsigned int cameraCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t cameraCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Camera ID for given name |
|
|
|
|
@ -167,7 +167,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no camera for given name exists, returns -1. |
|
|
|
|
* @see CameraData::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int cameraForName(const std::string& name); |
|
|
|
|
virtual std::int32_t cameraForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Camera |
|
|
|
|
@ -176,10 +176,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* Returns pointer to given camera or nullptr, if no such camera |
|
|
|
|
* exists. |
|
|
|
|
*/ |
|
|
|
|
virtual CameraData* camera(unsigned int id); |
|
|
|
|
virtual CameraData* camera(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Two-dimensional object count */ |
|
|
|
|
virtual inline unsigned int object2DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t object2DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional object ID for given name |
|
|
|
|
@ -187,7 +187,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no scene for given name exists, returns -1. |
|
|
|
|
* @see ObjectData2D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int object2DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t object2DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional object |
|
|
|
|
@ -196,10 +196,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* Returns pointer to given object or nullptr, if no such object |
|
|
|
|
* exists. |
|
|
|
|
*/ |
|
|
|
|
virtual ObjectData2D* object2D(unsigned int id); |
|
|
|
|
virtual ObjectData2D* object2D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Three-dimensional object count */ |
|
|
|
|
virtual inline unsigned int object3DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t object3DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional object ID for given name |
|
|
|
|
@ -207,7 +207,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no scene for given name exists, returns -1. |
|
|
|
|
* @see ObjectData3D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int object3DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t object3DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional object |
|
|
|
|
@ -216,10 +216,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* Returns pointer to given object or nullptr, if no such object |
|
|
|
|
* exists. |
|
|
|
|
*/ |
|
|
|
|
virtual ObjectData3D* object3D(unsigned int id); |
|
|
|
|
virtual ObjectData3D* object3D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Two-dimensional mesh count */ |
|
|
|
|
virtual inline unsigned int mesh2DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t mesh2DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional mesh ID for given name |
|
|
|
|
@ -227,7 +227,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no mesh for given name exists, returns -1. |
|
|
|
|
* @see MeshData2D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int mesh2DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t mesh2DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional mesh |
|
|
|
|
@ -235,10 +235,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given mesh or nullptr, if no such mesh exists. |
|
|
|
|
*/ |
|
|
|
|
virtual MeshData2D* mesh2D(unsigned int id); |
|
|
|
|
virtual MeshData2D* mesh2D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Three-dimensional mesh count */ |
|
|
|
|
virtual inline unsigned int mesh3DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t mesh3DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional mesh ID for given name |
|
|
|
|
@ -246,7 +246,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no mesh for given name exists, returns -1. |
|
|
|
|
* @see MeshData3D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int mesh3DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t mesh3DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional mesh |
|
|
|
|
@ -254,10 +254,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given mesh or nullptr, if no such mesh exists. |
|
|
|
|
*/ |
|
|
|
|
virtual MeshData3D* mesh3D(unsigned int id); |
|
|
|
|
virtual MeshData3D* mesh3D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Material count */ |
|
|
|
|
virtual inline unsigned int materialCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t materialCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Material ID for given name |
|
|
|
|
@ -265,7 +265,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no material for given name exists, returns -1. |
|
|
|
|
* @see AbstractMaterialData::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int materialForName(const std::string& name); |
|
|
|
|
virtual std::int32_t materialForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Material |
|
|
|
|
@ -274,10 +274,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* Returns pointer to given material or nullptr, if no such material |
|
|
|
|
* exists. |
|
|
|
|
*/ |
|
|
|
|
virtual AbstractMaterialData* material(unsigned int id); |
|
|
|
|
virtual AbstractMaterialData* material(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief %Texture count */ |
|
|
|
|
virtual inline unsigned int textureCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t textureCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Texture ID for given name |
|
|
|
|
@ -285,7 +285,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no texture for given name exists, returns -1. |
|
|
|
|
* @see TextureData::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int textureForName(const std::string& name); |
|
|
|
|
virtual std::int32_t textureForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief %Texture |
|
|
|
|
@ -294,10 +294,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* Returns pointer to given texture or nullptr, if no such texture |
|
|
|
|
* exists. |
|
|
|
|
*/ |
|
|
|
|
virtual TextureData* texture(unsigned int id); |
|
|
|
|
virtual TextureData* texture(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief One-dimensional image count */ |
|
|
|
|
virtual inline unsigned int image1DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t image1DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief One-dimensional image ID for given name |
|
|
|
|
@ -305,7 +305,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no image for given name exists, returns -1. |
|
|
|
|
* @see ImageData1D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int image1DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t image1DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief One-dimensional image |
|
|
|
|
@ -313,10 +313,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given image or nullptr, if no such image exists. |
|
|
|
|
*/ |
|
|
|
|
virtual ImageData1D* image1D(unsigned int id); |
|
|
|
|
virtual ImageData1D* image1D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Two-dimensional image count */ |
|
|
|
|
virtual inline unsigned int image2DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t image2DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional image ID for given name |
|
|
|
|
@ -324,7 +324,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no image for given name exists, returns -1. |
|
|
|
|
* @see ImageData2D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int image2DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t image2DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Two-dimensional image |
|
|
|
|
@ -332,10 +332,10 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given image or nullptr, if no such image exists. |
|
|
|
|
*/ |
|
|
|
|
virtual ImageData2D* image2D(unsigned int id); |
|
|
|
|
virtual ImageData2D* image2D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/** @brief Three-dimensional image count */ |
|
|
|
|
virtual inline unsigned int image3DCount() const { return 0; } |
|
|
|
|
virtual inline std::uint32_t image3DCount() const { return 0; } |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional image ID for given name |
|
|
|
|
@ -343,7 +343,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* If no image for given name exists, returns -1. |
|
|
|
|
* @see ImageData3D::name() |
|
|
|
|
*/ |
|
|
|
|
virtual int image3DForName(const std::string& name); |
|
|
|
|
virtual std::int32_t image3DForName(const std::string& name); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Three-dimensional image |
|
|
|
|
@ -351,7 +351,7 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
* |
|
|
|
|
* Returns pointer to given image or nullptr, if no such image exists. |
|
|
|
|
*/ |
|
|
|
|
virtual ImageData3D* image3D(unsigned int id); |
|
|
|
|
virtual ImageData3D* image3D(std::uint32_t id); |
|
|
|
|
|
|
|
|
|
/*@}*/ |
|
|
|
|
}; |
|
|
|
|
@ -359,30 +359,30 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin {
|
|
|
|
|
CORRADE_ENUMSET_OPERATORS(AbstractImporter::Features) |
|
|
|
|
|
|
|
|
|
/* Implementations for inline functions with unused parameters */ |
|
|
|
|
inline int AbstractImporter::sceneForName(const std::string&) { return -1; } |
|
|
|
|
inline SceneData* AbstractImporter::scene(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::lightForName(const std::string&) { return -1; } |
|
|
|
|
inline LightData* AbstractImporter::light(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::cameraForName(const std::string&) { return -1; } |
|
|
|
|
inline CameraData* AbstractImporter::camera(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::object2DForName(const std::string&) { return -1; } |
|
|
|
|
inline ObjectData2D* AbstractImporter::object2D(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::object3DForName(const std::string&) { return -1; } |
|
|
|
|
inline ObjectData3D* AbstractImporter::object3D(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::mesh2DForName(const std::string&) { return -1; } |
|
|
|
|
inline MeshData2D* AbstractImporter::mesh2D(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::mesh3DForName(const std::string&) { return -1; } |
|
|
|
|
inline MeshData3D* AbstractImporter::mesh3D(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::materialForName(const std::string&) { return -1; } |
|
|
|
|
inline AbstractMaterialData* AbstractImporter::material(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::textureForName(const std::string&) { return -1; } |
|
|
|
|
inline TextureData* AbstractImporter::texture(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::image1DForName(const std::string&) { return -1; } |
|
|
|
|
inline ImageData1D* AbstractImporter::image1D(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::image2DForName(const std::string&) { return -1; } |
|
|
|
|
inline ImageData2D* AbstractImporter::image2D(unsigned int) { return nullptr; } |
|
|
|
|
inline int AbstractImporter::image3DForName(const std::string&) { return -1; } |
|
|
|
|
inline ImageData3D* AbstractImporter::image3D(unsigned int) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::sceneForName(const std::string&) { return -1; } |
|
|
|
|
inline SceneData* AbstractImporter::scene(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::lightForName(const std::string&) { return -1; } |
|
|
|
|
inline LightData* AbstractImporter::light(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::cameraForName(const std::string&) { return -1; } |
|
|
|
|
inline CameraData* AbstractImporter::camera(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::object2DForName(const std::string&) { return -1; } |
|
|
|
|
inline ObjectData2D* AbstractImporter::object2D(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::object3DForName(const std::string&) { return -1; } |
|
|
|
|
inline ObjectData3D* AbstractImporter::object3D(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::mesh2DForName(const std::string&) { return -1; } |
|
|
|
|
inline MeshData2D* AbstractImporter::mesh2D(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::mesh3DForName(const std::string&) { return -1; } |
|
|
|
|
inline MeshData3D* AbstractImporter::mesh3D(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::materialForName(const std::string&) { return -1; } |
|
|
|
|
inline AbstractMaterialData* AbstractImporter::material(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::textureForName(const std::string&) { return -1; } |
|
|
|
|
inline TextureData* AbstractImporter::texture(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::image1DForName(const std::string&) { return -1; } |
|
|
|
|
inline ImageData1D* AbstractImporter::image1D(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::image2DForName(const std::string&) { return -1; } |
|
|
|
|
inline ImageData2D* AbstractImporter::image2D(std::uint32_t) { return nullptr; } |
|
|
|
|
inline std::int32_t AbstractImporter::image3DForName(const std::string&) { return -1; } |
|
|
|
|
inline ImageData3D* AbstractImporter::image3D(std::uint32_t) { return nullptr; } |
|
|
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
|
|
|