Files
Seele/src/Engine/Window/View.cpp
T

26 lines
417 B
C++
Raw Normal View History

2020-03-02 19:07:49 +01:00
#include "View.h"
2020-04-15 02:03:56 +02:00
#include "Window.h"
2021-09-29 22:12:56 +02:00
#include "Graphics/Graphics.h"
2020-03-02 19:07:49 +01:00
2021-10-01 19:55:04 +02:00
using namespace Seele;
View::View(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &viewportInfo)
2020-05-05 01:51:13 +02:00
: graphics(graphics), owner(window)
2020-03-02 19:07:49 +01:00
{
2020-04-15 02:03:56 +02:00
viewport = graphics->createViewport(owner->getGfxHandle(), viewportInfo);
2020-03-02 19:07:49 +01:00
}
2021-10-01 19:55:04 +02:00
View::~View()
2020-03-02 19:07:49 +01:00
{
}
2020-03-05 11:43:38 +01:00
2021-10-01 19:55:04 +02:00
void View::applyArea(URect area)
2020-03-05 11:43:38 +01:00
{
2021-09-29 22:12:56 +02:00
2020-03-05 11:43:38 +01:00
}
2020-10-29 02:22:01 +01:00
void View::setFocused()
{
owner->setFocused(this);
}