Nebula
Loading...
Searching...
No Matches
graphicsmanager.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12//------------------------------------------------------------------------------
13#include "core/refcounted.h"
14#include "core/singleton.h"
15#include "game/manager.h"
16#include "game/category.h"
18#include "graphicsfeature/components/graphicsfeature.h"
19
20namespace GraphicsFeature
21{
22
24{
26public:
27
29 virtual ~GraphicsManager();
30
31 void OnActivate() override;
32 void OnDeactivate() override;
33 void OnDecay() override;
34 void OnCleanup(Game::World* world) override;
35
37 static void InitModel(Game::World*, Game::Entity, Model*);
39 static void InitPointLight(Game::World* world, Game::Entity entity, PointLight* light);
41 static void InitSpotLight(Game::World* world, Game::Entity entity, SpotLight* light);
42
43private:
45};
46
47} // namespace GraphicsFeature
Managers are objects which care about some specific functionality of a feature.
Definition manager.h:32
Definition world.h:50
Handles logic for connecting the game layer with the render layer.
Definition graphicsmanager.h:24
void OnActivate() override
Definition graphicsmanager.cc:193
void OnDeactivate() override
called when removed from game server
Definition graphicsmanager.cc:203
static void InitPointLight(Game::World *world, Game::Entity entity, PointLight *light)
called automatically when a point light needs to be initialized
Definition graphicsmanager.cc:212
void OnCleanup(Game::World *world) override
Cleanup all graphics entities.
Definition graphicsmanager.cc:265
static void InitSpotLight(Game::World *world, Game::Entity entity, SpotLight *light)
called automatically when a spot light needs to be initialized
Definition graphicsmanager.cc:228
void InitUpdateModelTransformProcessor()
Definition graphicsmanager.cc:170
virtual __DeclareClass(GraphicsManager) public ~GraphicsManager()
Definition graphicsmanager.cc:39
static void InitModel(Game::World *, Game::Entity, Model *)
called automatically when a model needs to be initialized
Definition graphicsmanager.cc:249
void OnDecay() override
called before cleaning up managed properties decay buffers
Definition graphicsmanager.cc:137
Definition graphicsfeatureunit.cc:58
#define __DeclareClass(type)
An entity is essentially just an Id with some utility functions attached.
Definition entity.h:35