|
Castor3D
..
|
Main System. More...
Inheritance diagram for Castor3D::Engine:
Collaboration diagram for Castor3D::Engine:Public Member Functions | |
| C3D_API | Engine () |
| Constructor. More... | |
| C3D_API | ~Engine () |
| Destructor. More... | |
| C3D_API void | Initialise (uint32_t p_wantedFPS=100, bool p_threaded=false) |
| Initialisation function, sets the wanted frame rate. More... | |
| C3D_API void | Cleanup () |
| Cleanup function, destroys everything created from the beginning. More... | |
| C3D_API bool | LoadRenderer (eRENDERER_TYPE p_type) |
| Loads a renderer plug-in, given the renderer type. More... | |
| C3D_API void | PostEvent (FrameEventSPtr p_pEvent) |
| Posts a frame event to the default frame listener. More... | |
| C3D_API bool | IsCleaned () |
| Retrieves the cleanup status. More... | |
| C3D_API void | SetCleaned () |
| Tells the engine is cleaned up. More... | |
| C3D_API bool | SupportsShaderModel (eSHADER_MODEL p_eShaderModel) |
| Checks the current support for given shader model. More... | |
| C3D_API void | RegisterParsers (Castor::String const &p_name, Castor::FileParser::AttributeParsersBySection &&p_parsers) |
| Registers additional parsers for SceneFileParser. More... | |
| C3D_API void | RegisterSections (Castor::String const &p_name, Castor::StrUIntMap const &p_sections) |
| Registers additional sections for SceneFileParser. More... | |
| C3D_API void | UnregisterParsers (Castor::String const &p_name) |
| Unregisters parsers for SceneFileParser. More... | |
| C3D_API void | UnregisterSections (Castor::String const &p_name) |
| Unregisters sections for SceneFileParser. More... | |
| Castor::ImageManager const & | GetImageManager () const |
| Retrieves the images collection. More... | |
| Castor::ImageManager & | GetImageManager () |
| Retrieves the images collection. More... | |
| Castor::FontManager const & | GetFontManager () const |
| Retrieves the fonts collection. More... | |
| Castor::FontManager & | GetFontManager () |
| Retrieves the fonts collection. More... | |
| RenderSystem * | GetRenderSystem () const |
| Retrieves the RenderSystem. More... | |
| BlendStateSPtr | GetDefaultBlendState () const |
| Retrieves the default BlendState (no blend) More... | |
| SamplerSPtr | GetDefaultSampler () const |
| Retrieves the default Sampler. More... | |
| SamplerSPtr | GetLightsSampler () const |
| Retrieves the lighting Sampler. More... | |
| std::map< Castor::String, Castor::FileParser::AttributeParsersBySection > const & | GetAdditionalParsers () const |
| Retrieves the SceneFileParser additional parsers. More... | |
| std::map< Castor::String, Castor::StrUIntMap > const & | GetAdditionalSections () const |
| Retrieves the SceneFileParser additional sections. More... | |
| Version const & | GetVersion () const |
| bool | HasRenderLoop () const |
| RenderLoop const & | GetRenderLoop () const |
| RenderLoop & | GetRenderLoop () |
| void | SetPerObjectLighting (bool p_value) |
| Sets the need for per object lighting. More... | |
| bool | GetPerObjectLighting () |
| bool | IsThreaded () |
Static Public Member Functions | |
| static C3D_API Castor::Path | GetPluginsDirectory () |
| Retrieves plug-ins path. More... | |
| static C3D_API Castor::Path | GetEngineDirectory () |
| Gives the Castor directory. More... | |
| static C3D_API Castor::Path | GetDataDirectory () |
| Retrieves data path. More... | |
Main System.
| C3D_API Castor3D::Engine::Engine | ( | ) |
Constructor.
| C3D_API Castor3D::Engine::~Engine | ( | ) |
Destructor.
| C3D_API void Castor3D::Engine::Cleanup | ( | ) |
Cleanup function, destroys everything created from the beginning.
|
inline |
Retrieves the SceneFileParser additional parsers.
|
inline |
Retrieves the SceneFileParser additional sections.
|
static |
Retrieves data path.
|
inline |
Retrieves the default BlendState (no blend)
|
inline |
|
static |
Gives the Castor directory.
|
inline |
Retrieves the fonts collection.
|
inline |
Retrieves the fonts collection.
|
inline |
Retrieves the images collection.
|
inline |
Retrieves the images collection.
|
inline |
|
inline |
|
static |
Retrieves plug-ins path.
|
inline |
|
inline |
|
inline |
Retrieves the RenderSystem.
|
inline |
|
inline |
| C3D_API void Castor3D::Engine::Initialise | ( | uint32_t | p_wantedFPS = 100, |
| bool | p_threaded = false |
||
| ) |
Initialisation function, sets the wanted frame rate.
| [in] | p_wantedFPS | The wanted FPS count |
| [in] | p_threaded | If false, the render can't be threaded |
| C3D_API bool Castor3D::Engine::IsCleaned | ( | ) |
Retrieves the cleanup status.
true if cleaned up
|
inline |
| C3D_API bool Castor3D::Engine::LoadRenderer | ( | eRENDERER_TYPE | p_type | ) |
Loads a renderer plug-in, given the renderer type.
| [in] | p_type | The renderer type |
true if ok | C3D_API void Castor3D::Engine::PostEvent | ( | FrameEventSPtr | p_pEvent | ) |
Posts a frame event to the default frame listener.
| [in] | p_pEvent | The event to add |
Referenced by Castor3D::ElementCleaner< Elem, typename std::enable_if< is_cleanable< Elem >::value &&!is_instant< Elem >::value >::type >::Cleanup(), Castor3D::SamplerManager::Create(), Castor3D::GeometryManager::Create(), and Castor3D::ElementInitialiser< Elem, typename std::enable_if< is_initialisable< Elem >::value &&!is_instant< Elem >::value >::type >::Initialise().
Here is the caller graph for this function:| C3D_API void Castor3D::Engine::RegisterParsers | ( | Castor::String const & | p_name, |
| Castor::FileParser::AttributeParsersBySection && | p_parsers | ||
| ) |
Registers additional parsers for SceneFileParser.
| [in] | p_name | The registering name. |
| [in] | p_parsers | The parsers. |
| C3D_API void Castor3D::Engine::RegisterSections | ( | Castor::String const & | p_name, |
| Castor::StrUIntMap const & | p_sections | ||
| ) |
Registers additional sections for SceneFileParser.
| [in] | p_name | The registering name. |
| [in] | p_sections | The sections. |
| C3D_API void Castor3D::Engine::SetCleaned | ( | ) |
Tells the engine is cleaned up.
|
inline |
Sets the need for per object lighting.
| [in] | p_value | The new value. |
| C3D_API bool Castor3D::Engine::SupportsShaderModel | ( | eSHADER_MODEL | p_eShaderModel | ) |
Checks the current support for given shader model.
| [in] | p_eShaderModel | The shader model |
true if the shader model is supported in actual configuration | C3D_API void Castor3D::Engine::UnregisterParsers | ( | Castor::String const & | p_name | ) |
Unregisters parsers for SceneFileParser.
| [in] | p_name | The registering name. |
| C3D_API void Castor3D::Engine::UnregisterSections | ( | Castor::String const & | p_name | ) |
Unregisters sections for SceneFileParser.
| [in] | p_name | The registering name. |
1.8.15