FCT
载入中...
搜索中...
未找到
ImageRenderTarget.h
浏览该文件的文档.
1#ifndef IMAGERENDERTARGET_H
2#define IMAGERENDERTARGET_H
4#include "../RHI/Image.h"
5#include "./IRenderTarget.h"
7
8namespace FCT
9{
11 public:
12 RenderTargetType getType() const override;
15 int width() const { return m_width; }
16 int height() const { return m_height; }
17 void witdh(int width) { m_width = width; }
18 int height(int height) { m_height = height; }
19 void bindTarget(RHI::Image* image);
20 void bindTarget(Image* image);
21 void setDepthStencilBuffer(Image* image);
22 Image* targetImage() const { return m_target; }
24/*
25 void bindRenderTarget(uint32_t index, Image* image);
26 void bindRenderTarget(uint32_t index, RHI::Image* image);*/
27 /*void addRenderTarget(Image* image);
28 void addRenderTarget(RHI::Image* image);*/
29 /*void addRenderTargets(std::vector<RHI::Image*> images)
30 {
31 for (auto& image : images)
32 {
33 addRenderTarget(image);
34 }
35 }
36 void addRenderTarget(std::vector<RHI::Image*> images);*/
37 void bind(Context* ctx){};
38 //std::vector<Image*> getTargetImages() override;
39 Image* getImage() const override
40 {
41 return nullptr;
42 }
44 //std::map<uint32_t, RHI::Image*> getTarget override;
45 private:
52 //std::map<uint32_t,Image*> m_renderTargetImages;
53 //std::vector<Image*> m_renderTargetImages;
54 };
55}
56
57
58#endif //IMAGERENDERTARGET_H
void renderTargetType(RenderTargetType type)
Image * getImage() const override
void setDepthStencilBuffer(Image *image)
RenderTargetType getType() const override
void bindTarget(RHI::Image *image)