#include <framebuffer.h>
Public Member Functions | |
| void | destroy () |
| void | create () |
| bool | setSize (uint width, uint height) override |
| Texture * | getTexture () const |
Public Member Functions inherited from OpenGL::Framebuffer | |
| void | setClearColor (GLfloat r, GLfloat g, GLfloat b, GLfloat a) |
| void | enableBlend (BlendMode mode) |
| void | enableScissorTest (bool enable) |
| void | setScissorBox (GLint x, GLint y, GLsizei w, GLsizei h) |
| const Math::Matrix4 & | getProjectionMatrix () const |
| void | copyRenderStateFrom (const Framebuffer &other, uint copyMask) |
| virtual bool | setSize (uint width, uint height)=0 |
| void | activate (Pipeline *pipeline) |
| void | deactivate () |
Protected Member Functions | |
| void | activateInternal () override |
Protected Member Functions inherited from OpenGL::Framebuffer | |
| bool | isActive () const |
| void | applyViewport () |
| void | applyProjectionMatrix () |
| virtual void | activateInternal ()=0 |
| virtual void | deactivateInternal () |
Additional Inherited Members | |
Public Types inherited from OpenGL::Framebuffer | |
| enum | BlendMode { kBlendModeDisabled , kBlendModeOpaque , kBlendModeTraditionalTransparency , kBlendModePremultipliedTransparency , kBlendModeAdditive , kBlendModeMaskAlphaAndInvertByColor } |
| enum | CopyMask { kCopyMaskClearColor = (1 << 0) , kCopyMaskBlendState = (1 << 1) , kCopyMaskScissorState = (1 << 2) , kCopyMaskScissorBox = (1 << 4) , kCopyMaskAll } |
Protected Attributes inherited from OpenGL::Framebuffer | |
| GLint | _viewport [4] |
| Math::Matrix4 | _projectionMatrix |
Render to texture framebuffer implementation.
This target allows to render to a texture, which can then be used for further rendering.
| void OpenGL::TextureTarget::destroy | ( | ) |
Notify that the GL context is about to be destroyed.
| void OpenGL::TextureTarget::create | ( | ) |
Notify that the GL context has been created.
|
overridevirtual |
Set size of the texture target.
Implements OpenGL::Framebuffer.
|
inline |
Query pointer to underlying GL texture.
|
overrideprotectedvirtual |
Activate framebuffer.
This is supposed to set all state associated with the framebuffer.
Implements OpenGL::Framebuffer.