ScummVM API documentation
OpenGL::RenderbufferTarget Class Reference

#include <renderbuffer.h>

Inheritance diagram for OpenGL::RenderbufferTarget:
OpenGL::Framebuffer

Public Member Functions

 RenderbufferTarget (GLuint renderbufferID)
 
bool setSize (uint width, uint height) override
 
- 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)
 
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 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
 

Detailed Description

Render to renderbuffer framebuffer implementation.

This target allows to render to a renderbuffer, which can then be used as a rendering source like expected on iOS.

Member Function Documentation

◆ setSize()

bool OpenGL::RenderbufferTarget::setSize ( uint  width,
uint  height 
)
overridevirtual

Set size of the render target.

Implements OpenGL::Framebuffer.

◆ activateInternal()

void OpenGL::RenderbufferTarget::activateInternal ( )
overrideprotectedvirtual

Activate framebuffer.

This is supposed to set all state associated with the framebuffer.

Implements OpenGL::Framebuffer.


The documentation for this class was generated from the following file: