Camera Component, Editor Viewport Widget refactoring.
- Handle changing of active camera entirely inside CameraComponentController - Remove a LOT of legacy Cry things related to cameras - Add a CameraSystemComponent to handle ActiveCameraRequestBus and CameraSystemRequestBus Signed-off-by: Yuriy Toporovskyy <toporovskyy.y@gmail.com>
This commit is contained in:
@@ -644,13 +644,31 @@ void CViewportTitleDlg::CreateViewportInformationMenu()
|
||||
|
||||
void CViewportTitleDlg::AddResolutionMenus(QMenu* menu, std::function<void(int, int)> callback, const QStringList& customPresets)
|
||||
{
|
||||
static const CRenderViewport::SResolution resolutions[] = {
|
||||
CRenderViewport::SResolution(1280, 720),
|
||||
CRenderViewport::SResolution(1920, 1080),
|
||||
CRenderViewport::SResolution(2560, 1440),
|
||||
CRenderViewport::SResolution(2048, 858),
|
||||
CRenderViewport::SResolution(1998, 1080),
|
||||
CRenderViewport::SResolution(3840, 2160)
|
||||
struct SResolution
|
||||
{
|
||||
SResolution()
|
||||
: width(0)
|
||||
, height(0)
|
||||
{
|
||||
}
|
||||
|
||||
SResolution(int w, int h)
|
||||
: width(w)
|
||||
, height(h)
|
||||
{
|
||||
}
|
||||
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
static const SResolution resolutions[] = {
|
||||
SResolution(1280, 720),
|
||||
SResolution(1920, 1080),
|
||||
SResolution(2560, 1440),
|
||||
SResolution(2048, 858),
|
||||
SResolution(1998, 1080),
|
||||
SResolution(3840, 2160)
|
||||
};
|
||||
|
||||
static const size_t resolutionCount = sizeof(resolutions) / sizeof(resolutions[0]);
|
||||
|
||||
Reference in New Issue
Block a user