forked from Dynamitos/Seele
33 lines
506 B
C++
33 lines
506 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(Math::URect)
|
|
{
|
|
|
|
}
|
|
|
|
void View::setFocused()
|
|
{
|
|
owner->setFocused(this);
|
|
}
|
|
|
|
const std::string& View::getName()
|
|
{
|
|
return name;
|
|
}
|