Pioneer
Loading...
Searching...
No Matches
RenderTargetDummy.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef _DUMMY_RENDERTARGET_H
5#define _DUMMY_RENDERTARGET_H
6
8
9namespace Graphics {
10
11 class RendererDummy;
12
13 namespace Dummy {
14
16 public:
17 virtual Texture *GetColorTexture() const { return m_colorTexture.Get(); }
18 virtual Texture *GetDepthTexture() const { return m_depthTexture.Get(); }
19 virtual void SetCubeFaceTexture(const Uint32 face, Texture *t) final { m_colorTexture.Reset(t); }
20 virtual void SetColorTexture(Texture *t) { m_colorTexture.Reset(t); }
21 virtual void SetDepthTexture(Texture *t) { m_depthTexture.Reset(t); }
22
23 protected:
27
28 private:
29 RefCountedPtr<Texture> m_colorTexture;
30 RefCountedPtr<Texture> m_depthTexture;
31 };
32
33 } // namespace Dummy
34
35} // namespace Graphics
36
37#endif
Definition RenderTargetDummy.h:15
virtual void SetDepthTexture(Texture *t)
Definition RenderTargetDummy.h:21
virtual void SetColorTexture(Texture *t)
Definition RenderTargetDummy.h:20
virtual Texture * GetDepthTexture() const
Definition RenderTargetDummy.h:18
virtual void SetCubeFaceTexture(const Uint32 face, Texture *t) final
Definition RenderTargetDummy.h:19
virtual Texture * GetColorTexture() const
Definition RenderTargetDummy.h:17
RenderTarget(const RenderTargetDesc &d)
Definition RenderTargetDummy.h:25
Definition RenderTarget.h:38
Definition RendererDummy.h:22
Definition Texture.h:106
Definition RefCounted.h:36
Definition Background.h:14
Definition RenderTarget.h:20