mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
FrameBuffer creation flags replace booleans
Instead of many creation options (with alpha, with multisampling, etc) use a single flag with boolean operators. Creation of the new mipmap flag for FrameBuffer, rendering the current FBO into multiple sub-resolutions.
This commit is contained in:
@@ -78,9 +78,14 @@ void RenderSource::init()
|
||||
// rendered_surface_ = new Surface;
|
||||
// rendered_surface_->setTextureIndex( fb->texture() );
|
||||
|
||||
// use same flags than session frame, without multisampling
|
||||
FrameBuffer::FrameBufferFlags flag = fb->flags();
|
||||
flag &= ~FrameBuffer::FrameBuffer_multisampling;
|
||||
|
||||
// create the frame buffer displayed by the source (all modes)
|
||||
rendered_output_ = new FrameBuffer( fb->resolution(), fb->use_alpha() );
|
||||
// needs a first initialization
|
||||
rendered_output_ = new FrameBuffer( fb->resolution(), flag );
|
||||
|
||||
// needs a first initialization (to get texture)
|
||||
fb->blit(rendered_output_);
|
||||
|
||||
// set the texture index from internal framebuffer, apply it to the source texture surface
|
||||
|
||||
Reference in New Issue
Block a user