Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
ISceneLoader.hpp
1// Copyright (C) 2010-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_SCENE_LOADER_HPP_INCLUDED
6#define NIRT_I_SCENE_LOADER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/path.hpp>
10
11namespace nirt
12{
13namespace io
14{
15 class IReadFile;
16} // end namespace io
17namespace scene
18{
19 class ISceneNode;
20 class ISceneUserDataSerializer;
21
23
26class ISceneLoader : public virtual IReferenceCounted
27{
28public:
29
31
35 virtual bool isALoadableFileExtension(const io::path& filename) const = 0;
36
38
41 virtual bool isALoadableFileFormat(io::IReadFile* file) const = 0;
42
44
52 virtual bool loadScene(io::IReadFile* file, ISceneUserDataSerializer* userDataSerializer=0,
53 ISceneNode* rootNode=0) = 0;
54
55};
56
57
58} // end namespace scene
59} // end namespace nirt
60
61#endif
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing read access to a file.
Definition IReadFile.hpp:19
Class which can load a scene into the scene manager.
Definition ISceneLoader.hpp:27
virtual bool loadScene(io::IReadFile *file, ISceneUserDataSerializer *userDataSerializer=0, ISceneNode *rootNode=0)=0
Loads the scene into the scene manager.
virtual bool isALoadableFileFormat(io::IReadFile *file) const =0
Returns true if the class might be able to load this file.
virtual bool isALoadableFileExtension(const io::path &filename) const =0
Returns true if the class might be able to load this file.
Scene node interface.
Definition ISceneNode.hpp:43
Interface to read and write user data to and from .irr files.
Definition ISceneUserDataSerializer.hpp:25
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print