18 #ifndef INCLUDED_RENDERER 19 #define INCLUDED_RENDERER 41 #define g_Renderer CRenderer::GetSingleton() 55 void Reset() { memset(
this, 0,
sizeof(*
this)); }
84 bool Open(
int width,
int height);
87 void Resize(
int width,
int height);
158 void RenderFrame2D(
const bool renderGUI,
const bool renderLogger);
171 std::unique_ptr<Internals>
m;
185 #endif // INCLUDED_RENDERER Render animated models using a ShaderRenderModifier.
Definition: HWLightingModelRenderer.h:33
~CRenderer()
Definition: Renderer.cpp:337
Definition: DecalRData.h:35
void ReloadShaders()
Definition: Renderer.cpp:347
size_t m_ModelTris
Definition: Renderer.h:63
void PreloadResourcesBeforeNextFrame()
Performs a complete frame without presenting to force loading all needed resources.
Definition: Renderer.cpp:871
int m_Height
Definition: Renderer.h:175
std::unique_ptr< Internals > m
Definition: Renderer.h:170
Renderer::Backend::IDeviceCommandContext * GetDeviceCommandContext()
Definition: Renderer.cpp:881
CTimeManager & GetTimeManager()
Definition: Renderer.cpp:846
int GetWidth() const
Definition: Renderer.h:90
void RenderFrameImpl(const bool renderGUI, const bool renderLogger)
Definition: Renderer.cpp:465
size_t m_WaterTris
Definition: Renderer.h:61
void Resize(int width, int height)
Definition: Renderer.cpp:376
CDebugRenderer & GetDebugRenderer()
Definition: Renderer.cpp:861
#define DEFAULT(name)
Definition: mocks_test.cpp:29
CFontManager & GetFontManager()
Definition: Renderer.cpp:866
ScreenShotType m_ScreenShotType
Definition: Renderer.h:182
CRenderer()
Definition: Renderer.cpp:309
int GetHeight() const
Definition: Renderer.h:92
Definition: RenderingOptions.h:68
Render non-animated (but potentially moving) models using a ShaderRenderModifier. ...
Definition: InstancingModelRenderer.h:35
Definition: TimeManager.h:21
Definition: SceneRenderer.h:51
Definition: DebugRenderer.h:38
Texture manager with asynchronous loading and automatic DDS conversion/compression.
Definition: TextureManager.h:72
Renderer::Backend::IVertexInputLayout * GetVertexInputLayout(const PS::span< const Renderer::Backend::SVertexAttributeFormat > attributes)
Returns a cached vertex input layout.
Definition: Renderer.cpp:886
size_t m_OverlayTris
Definition: Renderer.h:65
void RenderBigScreenShot(const bool needsPresent)
Definition: Renderer.cpp:689
void MakeScreenShotOnNextFrame(ScreenShotType screenShotType)
Makes a screenshot on the next RenderFrame according of the given screenshot type.
Definition: Renderer.cpp:876
bool ShouldRender() const
Definition: Renderer.cpp:421
RenderPath
Definition: RenderingOptions.h:35
size_t m_BlendSplats
Definition: Renderer.h:67
Definition: PatchRData.h:41
Font manager: loads and caches bitmap fonts.
Definition: FontManager.h:30
Definition: Renderer.h:52
void EndFrame()
Definition: Renderer.cpp:823
CTextureManager & GetTextureManager()
Definition: Renderer.cpp:836
void MakeShadersDirty()
Definition: Renderer.cpp:830
size_t m_Particles
Definition: Renderer.h:69
friend class HWLightingModelRenderer
Definition: Renderer.h:150
CShaderManager & GetShaderManager()
Definition: Renderer.cpp:841
bool Open(int width, int height)
Definition: Renderer.cpp:355
size_t m_TerrainTris
Definition: Renderer.h:59
Definition: PostprocManager.h:31
void RenderFrame2D(const bool renderGUI, const bool renderLogger)
Definition: Renderer.cpp:603
void Reset()
Definition: Renderer.h:55
void SetRenderPath(RenderPath rp)
Definition: Renderer.cpp:386
Higher level interface on top of the whole frame rendering.
Definition: Renderer.h:48
Template base class for singletons.
Definition: Singleton.h:33
ScreenShotType
Definition: Renderer.h:72
void RenderScreenShot(const bool needsPresent)
Definition: Renderer.cpp:641
bool m_ShouldPreloadResourcesBeforeNextFrame
Definition: Renderer.h:180
int m_Width
Definition: Renderer.h:173
void RenderFrame(bool needsPresent)
Definition: Renderer.cpp:426
Stats m_Stats
Definition: Renderer.h:178
Definition: IDeviceCommandContext.h:40
Stats & GetStats()
Definition: Renderer.h:105
Struct CRendererInternals: Truly hide data that is supposed to be hidden in this structure so it won'...
Definition: Renderer.cpp:242
Shader manager: loads and caches shader programs.
Definition: ShaderManager.h:37
CSceneRenderer & GetSceneRenderer()
Definition: Renderer.cpp:856
size_t m_DrawCalls
Definition: Renderer.h:57
Simplifed version of std::span (C++20) as we don't support the original one yet.
Definition: Span.h:36
void BeginFrame()
Definition: Renderer.cpp:810
CPostprocManager & GetPostprocManager()
Definition: Renderer.cpp:851