Skip to content
Snippets Groups Projects

Add framebuffer viewport setting

Merged Jonathan Kunstwald requested to merge feature/add-framebuffer-viewport-setting into develop
All threads resolved!
2 files
+ 13
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,6 +6,8 @@
#include <glow/fwd.hh>
#include <glow/gl.hh>
#include <glm/vec2.hpp>
#include "../FramebufferAttachment.hh"
namespace glow
@@ -48,6 +50,9 @@ struct BoundFramebuffer
/// May bind an texture
void attachDepth(GLenum depthFormat = GL_DEPTH_COMPONENT32);
/// Override the default, attachment-based viewport setting
void setViewport(glm::ivec2 const& size);
private:
GLint previousBuffer; ///< previously bound buffer
std::array<GLenum, 8> previousDrawBuffers; ///< previously setup draw buffers
Loading