![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
#include <GraphicsSystem.h>
Inheritance diagram for Demo::GraphicsSystem:
Collaboration diagram for Demo::GraphicsSystem:Public Member Functions | |
| GraphicsSystem (GameState *gameState=nullptr, Ogre::String resourcePath=Ogre::String(""), Ogre::ColourValue backgroundColour=Ogre::ColourValue(0.2f, 0.4f, 0.6f)) | |
| virtual | ~GraphicsSystem () |
| void | _notifyLogicSystem (BaseSystem *logicSystem) |
| void | initialize (const Ogre::String &windowTitle) |
| void | deinitialize (void) |
| void | loadHlmsDiskCache (void) |
| void | update (float timeSinceLast) |
| void | updateGameEntities (const GameEntityVec &gameEntities, float weight) |
| Updates the SceneNodes of all the game entities in the container, interpolating them according to weight, reading the transforms from mCurrentTransformIdx and mCurrentTransformIdx-1. More... | |
| virtual void | execute (size_t threadId, size_t numThreads) |
| Overload Ogre::UniformScalableTask. More... | |
| const GameEntityVec & | getGameEntities (Ogre::SceneMemoryMgrTypes type) const |
| Returns the GameEntities that are ready to be rendered. More... | |
| void | setQuit (void) |
| bool | getQuit (void) const |
| float | getAccumTimeSinceLastLogicFrame (void) const |
| Ogre::Root * | getRoot (void) const |
| Ogre::Window * | getRenderWindow (void) const |
| Ogre::SceneManager * | getSceneManager (void) const |
| Ogre::Camera * | getCamera (void) const |
| Ogre::CompositorWorkspace * | getCompositorWorkspace (void) const |
| Ogre::v1::OverlaySystem * | getOverlaySystem (void) const |
| void | setAlwaysAskForConfig (bool alwaysAskForConfig) |
| bool | getAlwaysAskForConfig (void) const |
| const Ogre::String & | getPluginsFolder (void) const |
| const Ogre::String & | getWriteAccessFolder (void) const |
| const Ogre::String & | getResourcePath (void) const |
| const char * | getMediaReadArchiveType (void) const |
| virtual void | stopCompositor (void) |
| virtual void | restartCompositor (void) |
| void | messageLogged (const Ogre::String &message, Ogre::LogMessageLevel lml, bool maskDebug, const Ogre::String &logName, bool &skipThisMessage) override |
Public Member Functions inherited from Demo::BaseSystem | |
| BaseSystem (GameState *gameState=nullptr) | |
| virtual | ~BaseSystem () |
| virtual void | initialize (void) |
| virtual void | createScene01 (void) |
| virtual void | createScene02 (void) |
| virtual void | destroyScene (void) |
| void | beginFrameParallel (void) |
| void | update (float timeSinceLast) |
| void | finishFrameParallel (void) |
| void | finishFrame (void) |
Public Attributes | |
| size_t | debug_mode_thread_count = 1 |
| BlamCompositorPassRegistry * | ogre_pass_registry = nullptr |
Protected Member Functions | |
| bool | isWriteAccessFolder (const Ogre::String &folderPath, const Ogre::String &fileToSave) |
| virtual void | processIncomingMessage (Mq::MessageId messageId, const void *data) |
| void | loadTextureCache (void) |
| void | saveTextureCache (void) |
| void | saveHlmsDiskCache (void) |
| virtual void | setupResources (void) |
| virtual void | registerHlms (void) |
| virtual void | loadResources (void) |
| Optional override method where you can perform resource group loading Must at least do ResourceGroupManager::getSingleton().initialiseAllResourceGroups();. More... | |
| virtual void | chooseSceneManager (void) |
| virtual void | createCamera (void) |
| virtual Ogre::CompositorWorkspace * | setupCompositor (void) |
| Virtual so that advanced samples such as Sample_Compositor can override this method to change the default behavior if setupCompositor() is overridden, be aware @mBackgroundColour will be ignored. More... | |
| virtual void | initMiscParamsListener (Ogre::NameValuePairList ¶ms) |
| Called right before initializing Ogre's first window, so the params can be customized. More... | |
| virtual void | createResourceListener (void) |
| Optional override method where you can create resource listeners (e.g. for loading screens) More... | |
| void | gameEntityAdded (const GameEntityManager::CreatedGameEntity *createdGameEntity) |
| void | gameEntityRemoved (GameEntity *toRemove) |
Static Protected Member Functions | |
| static void | addResourceLocation (const Ogre::String &archName, const Ogre::String &typeName, const Ogre::String &secName) |
Protected Attributes | |
| BaseSystem * | mLogicSystem |
| Ogre::Root * | mRoot |
| Ogre::Window * | mRenderWindow |
| Ogre::SceneManager * | mSceneManager |
| Ogre::Camera * | mCamera |
| Ogre::CompositorWorkspace * | mWorkspace |
| Ogre::String | mPluginsFolder |
| Ogre::String | mWriteAccessFolder |
| Ogre::String | mResourcePath |
| Ogre::v1::OverlaySystem * | mOverlaySystem |
| StaticPluginLoader | mStaticPluginLoader |
| float | mAccumTimeSinceLastLogicFrame |
| Tracks the amount of elapsed time since we last heard from the LogicSystem finishing a frame. More... | |
| Ogre::uint32 | mCurrentTransformIdx |
| GameEntityVec | mGameEntities [Ogre::NUM_SCENE_MEMORY_MANAGER_TYPES] |
| const GameEntityVec * | mThreadGameEntityToUpdate |
| float | mThreadWeight |
| bool | mQuit |
| bool | mAlwaysAskForConfig |
| bool | mUseHlmsDiskCache |
| bool | mUseMicrocodeCache |
| Ogre::ColourValue | mBackgroundColour |
Protected Attributes inherited from Demo::BaseSystem | |
| GameState * | mCurrentGameState |
| Demo::GraphicsSystem::GraphicsSystem | ( | GameState * | gameState = nullptr, |
| Ogre::String | resourcePath = Ogre::String(""), |
||
| Ogre::ColourValue | backgroundColour = Ogre::ColourValue( 0.2f, 0.4f, 0.6f ) |
||
| ) |
|
virtual |
|
inline |
|
staticprotected |
Here is the caller graph for this function:
|
protectedvirtual |
Here is the caller graph for this function:
|
protectedvirtual |
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Optional override method where you can create resource listeners (e.g. for loading screens)
|
virtual |
Reimplemented from Demo::BaseSystem.
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Overload Ogre::UniformScalableTask.
|
protected |
Here is the caller graph for this function:
|
protected |
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
|
inline |
Returns the GameEntities that are ready to be rendered.
May include entities that are scheduled to be removed (i.e. they are no longer updated by logic)
| const char * Demo::GraphicsSystem::getMediaReadArchiveType | ( | void | ) | const |
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
|
inline |
Here is the caller graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
| void Demo::GraphicsSystem::initialize | ( | const Ogre::String & | windowTitle | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
Called right before initializing Ogre's first window, so the params can be customized.
Here is the caller graph for this function:
|
protected |
| void Demo::GraphicsSystem::loadHlmsDiskCache | ( | void | ) |
Here is the caller graph for this function:
|
protectedvirtual |
Optional override method where you can perform resource group loading Must at least do ResourceGroupManager::getSingleton().initialiseAllResourceGroups();.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Here is the caller graph for this function:
|
override |
Here is the call graph for this function:
|
protectedvirtual |
Implements Demo::Mq::MessageQueueSystem.
Here is the call graph for this function:
|
protectedvirtual |
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Here is the call graph for this function:
|
protected |
Here is the caller graph for this function:
|
protected |
Here is the caller graph for this function:| void Demo::GraphicsSystem::setAlwaysAskForConfig | ( | bool | alwaysAskForConfig | ) |
Here is the caller graph for this function:
|
inline |
|
protectedvirtual |
Virtual so that advanced samples such as Sample_Compositor can override this method to change the default behavior if setupCompositor() is overridden, be aware @mBackgroundColour will be ignored.
Here is the caller graph for this function:
|
protectedvirtual |
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Here is the caller graph for this function:| void Demo::GraphicsSystem::update | ( | float | timeSinceLast | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void Demo::GraphicsSystem::updateGameEntities | ( | const GameEntityVec & | gameEntities, |
| float | weight | ||
| ) |
Updates the SceneNodes of all the game entities in the container, interpolating them according to weight, reading the transforms from mCurrentTransformIdx and mCurrentTransformIdx-1.
| gameEntities | The container with entities to update. |
| weight | The interpolation weight, ideally in range [0; 1] |
| size_t Demo::GraphicsSystem::debug_mode_thread_count = 1 |
|
protected |
Tracks the amount of elapsed time since we last heard from the LogicSystem finishing a frame.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| BlamCompositorPassRegistry* Demo::GraphicsSystem::ogre_pass_registry = nullptr |