#include <frame_buffer.h>
Frame buffer interface.
Definition at line 47 of file frame_buffer.h.
◆ ~frame_buffer()
virtual scl::frame_buffer::~frame_buffer |
( |
| ) |
|
|
virtualdefault |
Frame buffer default deatructor.
◆ Bind()
virtual void scl::frame_buffer::Bind |
( |
| ) |
const |
|
pure virtual |
- Bind frame buffer to current render stage function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl_frame_buffer.
◆ Clear()
virtual void scl::frame_buffer::Clear |
( |
| ) |
|
|
pure virtual |
◆ Create()
- Create frame buffer function.
\props Props - propsrties (specification) of creating frame buffer.
- Returns
- None.
Definition at line 14 of file frame_buffer.cpp.
15{
17 {
20 }
21
23 return nullptr;
24}
#define SCL_CORE_ASSERT(expr,...)
static render_context_api GetApi()
◆ Free()
virtual void scl::frame_buffer::Free |
( |
| ) |
|
|
pure virtual |
- Unload frame buffer render target texture from GPU memory function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl_frame_buffer.
◆ GetColorAttachment()
virtual const shared< texture_2d > & scl::frame_buffer::GetColorAttachment |
( |
int |
Index = 0 | ) |
const |
|
pure virtual |
◆ GetDepthAttachment()
virtual const shared< texture_2d > & scl::frame_buffer::GetDepthAttachment |
( |
int |
Index = 0 | ) |
const |
|
pure virtual |
◆ GetFrameBufferProps()
◆ Resize()
virtual void scl::frame_buffer::Resize |
( |
int |
Width, |
|
|
int |
Height |
|
) |
| |
|
pure virtual |
- Resize frame buffer (resize also could be called by setting frame buffer props).
- Parameters
-
Width | - new frame buffer width. |
Height | - new frame buffer height. |
- Returns
- None.
Implemented in scl::gl_frame_buffer.
◆ SetFrameBufferProps()
Frame buffer getter/setter functions.
Frame buffer properties setter function.
Implemented in scl::gl_frame_buffer.
◆ Unbind()
virtual void scl::frame_buffer::Unbind |
( |
| ) |
const |
|
pure virtual |
- Unbind frame buffer from current render stage function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl_frame_buffer.
The documentation for this class was generated from the following files: