Nebula
Loading...
Searching...
No Matches
rendermodule.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
20#include "core/refcounted.h"
21
22//------------------------------------------------------------------------------
23namespace RenderModules
24{
26{
28public:
32 virtual ~RenderModule();
33
35 virtual void Setup();
37 virtual void Discard();
39 bool IsValid() const;
41 virtual void OnFrame();
42
43private:
44 bool isValid;
45};
46
47//------------------------------------------------------------------------------
50inline bool
52{
53 return this->isValid;
54}
55
56} // namespace RenderModules
57//------------------------------------------------------------------------------
The common base class of Nebula.
Definition refcounted.h:38
A RenderModule wraps a specific, optional, rendering functionality into a simple object which only re...
Definition rendermodule.h:26
virtual void OnFrame()
called per-frame by Graphics::GraphicsServer
Definition rendermodule.cc:61
virtual void Setup()
setup the render module
Definition rendermodule.cc:35
bool IsValid() const
return true if the render module has been setup
Definition rendermodule.h:51
bool isValid
Definition rendermodule.h:44
virtual ~RenderModule()
destructor
Definition rendermodule.cc:26
RenderModule()
constructor
Definition rendermodule.cc:17
virtual void Discard()
discard the render module
Definition rendermodule.cc:48
Definition rendermodule.cc:11