![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
#include <GraphicsSystem.h>
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 | 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) |
![]() | |
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 | loadHlmsDiskCache (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 |
![]() | |
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 |
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotectedvirtual |
Optional override method where you can create resource listeners (e.g. for loading screens)
|
virtual |
Reimplemented from Demo::BaseSystem.
|
virtual |
Overload Ogre::UniformScalableTask.
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Demo::GraphicsSystem::initialize | ( | const Ogre::String & | windowTitle | ) |
|
protectedvirtual |
Called right before initializing Ogre's first window, so the params can be customized.
|
protected |
|
protected |
|
protectedvirtual |
Optional override method where you can perform resource group loading Must at least do ResourceGroupManager::getSingleton().initialiseAllResourceGroups();.
|
protected |
|
protectedvirtual |
Implements Demo::Mq::MessageQueueSystem.
|
protectedvirtual |
|
virtual |
|
protected |
|
protected |
void Demo::GraphicsSystem::setAlwaysAskForConfig | ( | bool | alwaysAskForConfig | ) |
|
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.
|
protectedvirtual |
|
virtual |
void Demo::GraphicsSystem::update | ( | float | timeSinceLast | ) |
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 |