ScummVM API documentation
OpenGL::Backbuffer Class Reference

#include <framebuffer.h>

Inheritance diagram for OpenGL::Backbuffer:
OpenGL::Framebuffer

Public Member Functions

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

Default back buffer implementation.

Member Function Documentation

◆ setSize()

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

Set the size of the back buffer.

Implements OpenGL::Framebuffer.

◆ activateInternal()

void OpenGL::Backbuffer::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: