score
Home
Classes
Namespaces
Files
Scale.hpp
1
#pragma once
2
3
namespace
score::gfx
4
{
5
9
enum
ScaleMode
10
{
11
Original,
// 1 pixel in = 1 pixel out
12
BlackBars,
// Keep aspect ratio and scale so that the whole picture is visible
13
Fill,
// Keep aspect ratio and scale so that the whole screen is filled
14
Stretch
// Stretch to the viewport size
15
};
16
17
}
score::gfx
Graphics rendering pipeline for ossia score.
Definition:
Filter/PreviewWidget.hpp:12
score::gfx::ScaleMode
ScaleMode
How to resize a texture to adapt it to a viewport.
Definition:
Scale.hpp:10