Class scene#
Defined in File scene.h
Nested Relationships#
Nested Types#
Class Documentation#
-
class scene#
Class to load files into.
The scene where files and meshes can be added and loaded into.
Example usage:
std::string path = ... f3d::engine eng(f3d::window::Type::NATIVE); f3d::scene& load = eng.getScene(); if (load.supports(path) { load.add(path); }
Unnamed Group
-
virtual scene &add(const std::filesystem::path &filePath) = 0#
Add and load provided files into the scene Already added file will NOT be reloaded
Unnamed Group
Public Functions
-
virtual bool supports(const std::filesystem::path &filePath) = 0#
Return true if provided file path is supported, false otherwise.
-
virtual scene &loadAnimationTime(double timeValue) = 0#
Load added files at provided time value if they contain any animation Providing a timeVale outside of the current animationTimeRange will clamp to the closest value in the range. Does not do anything if there is no animations.
-
virtual std::pair<double, double> animationTimeRange() = 0#
Get animation time range of currently added files. Returns [0, 0] if there is no animations.
-
virtual scene &add(const std::filesystem::path &filePath) = 0#