Targets output to designated texture in texture buffer. More...
#include <pipeline.h>
Public Member Functions | |
TextureBufferOutput (TextureBuffer *buffer, u8 texture_index) | |
TextureBufferOutput (TextureBuffer *buffer, const std::vector< u8 > &texture_map) | |
TextureBufferOutput (TextureBuffer *buffer, const std::vector< u8 > &texture_map, u8 depth_stencil) | |
virtual | ~TextureBufferOutput () override |
void | activate (PipelineContext &context) override |
Activate the render target and configure OpenGL state for the output. | |
Public Member Functions inherited from RenderTarget | |
virtual void | reset (PipelineContext &context) override |
Resets the state of the object for the next pipeline iteration. | |
Public Member Functions inherited from RenderPipelineObject | |
virtual | ~RenderPipelineObject ()=default |
Private Attributes | |
TextureBuffer * | buffer |
std::vector< u8 > | texture_map |
u8 | depth_stencil { NO_DEPTH_TEXTURE } |
video::IRenderTarget * | render_target { nullptr } |
video::IVideoDriver * | driver { nullptr } |
Static Private Attributes | |
static const u8 | NO_DEPTH_TEXTURE = 255 |
Additional Inherited Members | |
Protected Attributes inherited from RenderTarget | |
bool | m_clear {true} |
Targets output to designated texture in texture buffer.
TextureBufferOutput::TextureBufferOutput | ( | TextureBuffer * | buffer, |
u8 | texture_index ) |
TextureBufferOutput::TextureBufferOutput | ( | TextureBuffer * | buffer, |
const std::vector< u8 > & | texture_map ) |
TextureBufferOutput::TextureBufferOutput | ( | TextureBuffer * | buffer, |
const std::vector< u8 > & | texture_map, | ||
u8 | depth_stencil ) |
|
overridevirtual |
References driver, and render_target.
|
overridevirtual |
Activate the render target and configure OpenGL state for the output.
This is usually done by
Reimplemented from RenderTarget.
References RenderTarget::activate(), buffer, PipelineContext::clear_color, depth_stencil, PipelineContext::device, driver, TextureBuffer::getTexture(), RenderTarget::m_clear, NO_DEPTH_TEXTURE, render_target, and texture_map.
|
private |
Referenced by activate().
|
private |
Referenced by activate().
|
private |
Referenced by ~TextureBufferOutput(), and activate().
|
staticprivate |
Referenced by activate().
|
private |
Referenced by ~TextureBufferOutput(), and activate().
|
private |
Referenced by activate().