ScummVM API documentation
OpenGL::TextureTarget Class Reference

#include <framebuffer.h>

Inheritance diagram for OpenGL::TextureTarget:
OpenGL::Framebuffer

Public Member Functions

void destroy ()
 
void create ()
 
bool setSize (uint width, uint height, Common::RotationMode rotation) override
 
GLTexturegetTexture () 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)
 
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 texture framebuffer implementation.

This target allows to render to a texture, which can then be used for further rendering.

Member Function Documentation

◆ destroy()

void OpenGL::TextureTarget::destroy ( )

Notify that the GL context is about to be destroyed.

◆ create()

void OpenGL::TextureTarget::create ( )

Notify that the GL context has been created.

◆ setSize()

bool OpenGL::TextureTarget::setSize ( uint  width,
uint  height,
Common::RotationMode  rotation 
)
overridevirtual

Set size of the texture target.

Implements OpenGL::Framebuffer.

◆ getTexture()

GLTexture* OpenGL::TextureTarget::getTexture ( ) const
inline

Query pointer to underlying GL texture.

◆ activateInternal()

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