26#include <vsg/io/ReaderWriter.h>
27#include <vsgXchange/Version.h>
34 class VSGXCHANGE_DECLSPEC models :
public vsg::Inherit<vsg::CompositeReaderWriter, models>
41 class VSGXCHANGE_DECLSPEC assimp :
public vsg::Inherit<vsg::ReaderWriter, assimp>
45 vsg::ref_ptr<vsg::Object> read(
const vsg::Path&, vsg::ref_ptr<const vsg::Options>)
const override;
46 vsg::ref_ptr<vsg::Object> read(std::istream&, vsg::ref_ptr<const vsg::Options>)
const override;
47 vsg::ref_ptr<vsg::Object> read(
const uint8_t* ptr,
size_t size, vsg::ref_ptr<const vsg::Options> options = {})
const override;
49 bool getFeatures(Features& features)
const override;
52 static constexpr const char* generate_smooth_normals =
"generate_smooth_normals";
53 static constexpr const char* generate_sharp_normals =
"generate_sharp_normals";
54 static constexpr const char* crease_angle =
"crease_angle";
55 static constexpr const char*
two_sided =
"two_sided";
60 static constexpr const char*
culling =
"culling";
64 bool readOptions(vsg::Options& options, vsg::CommandLine& arguments)
const override;
70 Implementation* _implementation;
optional assimp ReaderWriter
Definition models.h:42
static constexpr const char * external_texture_format
bool
Definition models.h:59
static constexpr const char * culling
TextureFormat enum.
Definition models.h:60
static constexpr const char * vertex_color_space
bool, insert cull nodes, defaults to true
Definition models.h:61
static constexpr const char * external_textures
int
Definition models.h:58
static constexpr const char * discard_empty_nodes
bool
Definition models.h:56
bool readOptions(vsg::Options &options, vsg::CommandLine &arguments) const override
CoordinateSpace {sRGB or LINEAR} to assume when reading materials colors.
static constexpr const char * two_sided
float
Definition models.h:55
static constexpr const char * material_color_space
CoordinateSpace {sRGB or LINEAR} to assume when reading vertex colors.
Definition models.h:62
static constexpr const char * print_assimp
bool
Definition models.h:57
Composite ReaderWriter that holds the used 3rd party model format loaders.
Definition models.h:35