forked from Dynamitos/Seele
28 lines
446 B
C++
28 lines
446 B
C++
#include "View.h"
|
|
#include "Window.h"
|
|
#include "Graphics/Graphics.h"
|
|
|
|
using namespace Seele;
|
|
|
|
View::View(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &viewportInfo, std::string name)
|
|
: graphics(graphics)
|
|
, owner(window)
|
|
, name(name)
|
|
{
|
|
viewport = graphics->createViewport(owner->getGfxHandle(), viewportInfo);
|
|
}
|
|
|
|
View::~View()
|
|
{
|
|
}
|
|
|
|
void View::applyArea(URect)
|
|
{
|
|
|
|
}
|
|
|
|
void View::setFocused()
|
|
{
|
|
owner->setFocused(this);
|
|
}
|