mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +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:
@@ -206,13 +206,13 @@ void InfoVisitor::visit (RenderSource& s)
|
||||
|
||||
if (s.frame()){
|
||||
if (brief_) {
|
||||
oss << (s.frame()->use_alpha() ? "RGBA, " : "RGB, ");
|
||||
oss << (s.frame()->flags() & FrameBuffer::FrameBuffer_alpha ? "RGBA, " : "RGB, ");
|
||||
oss << s.frame()->width() << " x " << s.frame()->height();
|
||||
}
|
||||
else {
|
||||
oss << "Rendering Output (";
|
||||
oss << RenderSource::rendering_provenance_label[s.renderingProvenance()] << ") " << std::endl;
|
||||
oss << (s.frame()->use_alpha() ? "RGBA" : "RGB") << std::endl;
|
||||
oss << (s.frame()->flags() & FrameBuffer::FrameBuffer_alpha ? "RGBA" : "RGB") << std::endl;
|
||||
oss << s.frame()->width() << " x " << s.frame()->height();
|
||||
}
|
||||
}
|
||||
@@ -230,13 +230,13 @@ void InfoVisitor::visit (CloneSource& s)
|
||||
|
||||
if (s.frame()){
|
||||
if (brief_) {
|
||||
oss << (s.frame()->use_alpha() ? "RGBA, " : "RGB, ");
|
||||
oss << (s.frame()->flags() & FrameBuffer::FrameBuffer_alpha ? "RGBA, " : "RGB, ");
|
||||
oss << s.frame()->width() << " x " << s.frame()->height();
|
||||
}
|
||||
else {
|
||||
if (s.origin())
|
||||
oss << "Clone of '" << s.origin()->name() << "' " << std::endl;
|
||||
oss << (s.frame()->use_alpha() ? "RGBA, " : "RGB, ");
|
||||
oss << (s.frame()->flags() & FrameBuffer::FrameBuffer_alpha ? "RGBA, " : "RGB, ");
|
||||
oss << FrameBufferFilter::type_label[s.filter()->type()] << " filter" << std::endl;
|
||||
oss << s.frame()->width() << " x " << s.frame()->height();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user