Documenting done.

This commit is contained in:
2022-10-20 07:49:42 -07:00
parent 0033785251
commit 221e5ee1f1
19 changed files with 243 additions and 123 deletions

View File

@ -18,15 +18,28 @@ namespace Dawn {
struct Color clearColor = COLOR_CORNFLOWER_BLUE;
public:
/**
* Construct the back buffer render target.
*
* @param renderManager Render Manager for this back buffer target.
*/
BackBufferRenderTarget(RenderManager &renderManager);
/**
* Requests to modify the viewport directly. This is mostly to be called
* by whatever is setting the window/display resolution, so that the
* backbuffer can keep track of what the viewport size is. This should
* also be DPI aware, e.g. "4k @ 2xDPI, resulting in a 1080p equiv" should
* still call this method with 3840, 2160.
*
* @param width New width of the back buffer.
* @param height New height of the back buffer.
*/
void setSize(float_t width, float_t height);
float_t getWidth() override;
float_t getHeight() override;
void setSize(float_t width, float_t height);
void setClearColor(struct Color color);
void setClearColor(struct Color color) override;
void clear(flag8_t clearFlags) override;
void bind() override;
};