BACKENDS: OPENGL: Allow to copy render settings between framebuffers
This commit is contained in:
parent
70cf4e9e3e
commit
f9005454bd
2 changed files with 38 additions and 0 deletions
|
@ -86,6 +86,22 @@ public:
|
|||
* Obtain projection matrix of the framebuffer.
|
||||
*/
|
||||
const Math::Matrix4 &getProjectionMatrix() const { return _projectionMatrix; }
|
||||
|
||||
enum CopyMask {
|
||||
kCopyMaskClearColor = (1 << 0),
|
||||
kCopyMaskBlendState = (1 << 1),
|
||||
kCopyMaskScissorState = (1 << 2),
|
||||
kCopyMaskScissorBox = (1 << 4),
|
||||
|
||||
kCopyMaskAll = kCopyMaskClearColor | kCopyMaskBlendState |
|
||||
kCopyMaskScissorState | kCopyMaskScissorBox,
|
||||
};
|
||||
|
||||
/**
|
||||
* Copy rendering state from another framebuffer
|
||||
*/
|
||||
void copyRenderStateFrom(const Framebuffer &other, uint copyMask);
|
||||
|
||||
protected:
|
||||
bool isActive() const { return _pipeline != nullptr; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue