CFrameBuffer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionCore.h>
5 #include <ionMath.h>
6 #include <ionGraphics.h>
7 
8 #include "Utilities.h"
9 #include "CRenderTarget.h"
10 
11 
12 namespace ion
13 {
14  namespace Graphics
15  {
16  namespace GL
17  {
18 
19  class CFrameBuffer : public IFrameBuffer, public CRenderTarget
20  {
21  public:
22 
24  ~CFrameBuffer();
25 
26  void AttachColorTexture(SharedPointer<ITexture2D> Texture, uint const Attachment);
29 
30  bool CheckCorrectness();
31 
32  virtual void Bind();
33 
34  uint Handle = 0;
35 
37 
38 #pragma warning(suppress: 4250)
39  };
40 
41  }
42  }
43 }
void AttachDepthTexture(SharedPointer< ITexture2D > Texture)
Definition: CFrameBuffer.cpp:49
std::shared_ptr< T > SharedPointer
Definition: ionSmartPointer.h:22
~CFrameBuffer()
Definition: CFrameBuffer.cpp:22
Definition: IRenderTarget.h:52
unsigned int uint
Definition: ionTypes.h:99
Definition: CRenderTarget.h:17
CWindow * Window
Definition: CRenderTarget.h:35
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
virtual void Bind()
Definition: CFrameBuffer.cpp:120
Definition: CWindow.h:17
void AttachColorTexture(SharedPointer< ITexture2D > Texture, uint const Attachment)
Definition: CFrameBuffer.cpp:30
Definition: CFrameBuffer.h:19
void AttachDepthBuffer(SharedPointer< IDepthBuffer > DepthBuffer)
Definition: CFrameBuffer.cpp:55
bool CheckCorrectness()
Definition: CFrameBuffer.cpp:61
CFrameBuffer(CWindow *Window)
Definition: CFrameBuffer.cpp:16
vec2u Size
Definition: CFrameBuffer.h:36
uint Handle
Definition: CFrameBuffer.h:34