73 virtual bool Create() = 0;
76 virtual void Destroy() = 0;
79 virtual bool IsDefault() = 0;
82 virtual int GetWidth() = 0;
85 virtual int GetHeight() = 0;
88 virtual int GetDepth() = 0;
91 virtual int GetSamples() = 0;
94 virtual int GetColorTexture() = 0;
97 virtual int GetDepthTexture() = 0;
100 virtual void Bind() = 0;
103 virtual void Unbind() = 0;
106 virtual void CopyToScreen(
int fromX,
int fromY,
int fromWidth,
int fromHeight,
int toX,
int toY,
int toWidth,
int toHeight) = 0;
119 int m_width, m_height, m_depth;
125 bool Create()
override;
128 void Destroy()
override;
131 bool IsDefault()
override;
134 int GetWidth()
override;
137 int GetHeight()
override;
140 int GetDepth()
override;
143 int GetSamples()
override;
146 int GetColorTexture()
override;
149 int GetDepthTexture()
override;
152 void Bind()
override;
155 void Unbind()
override;
158 void CopyToScreen(
int fromX,
int fromY,
int fromWidth,
int fromHeight,
int toX,
int toY,
int toWidth,
int toHeight)
override;
int samples
Requested number of samples for multisampling.
Definition: framebuffer.h:43
int depth
Requested depth buffer.
Definition: framebuffer.h:41
int width
Requested width of buffers.
Definition: framebuffer.h:37
Contains parameters for new framebuffer.
Definition: framebuffer.h:34
Namespace for (new) graphics code.
Definition: app.h:49
int height
Requested height of buffers.
Definition: framebuffer.h:39
bool colorTexture
true requests color texture
Definition: framebuffer.h:45
void LoadDefault()
Loads default values.
Definition: framebuffer.h:50
bool depthTexture
true requests depth texture
Definition: framebuffer.h:47
Concrete implementation of default framebuffer.
Definition: framebuffer.h:116
Abstract interface of default framebuffer and offscreen framebuffers.
Definition: framebuffer.h:67