Clean image types
This commit is contained in:
parent
e7683cd94e
commit
c6d03f16d0
18 changed files with 169 additions and 107 deletions
|
@ -14,7 +14,7 @@ namespace mt
|
|||
Window::Window()
|
||||
:mWidth(800),
|
||||
mHeight(600),
|
||||
mBackingImage(std::make_unique<Image>(mWidth, mHeight)),
|
||||
mBackingImage(std::make_unique<Image<uint8_t> >(mWidth, mHeight)),
|
||||
mWidget(Widget::Create())
|
||||
{
|
||||
mWidget->setBounds(mWidth, mHeight);
|
||||
|
@ -96,7 +96,7 @@ void Window::SetPlatformWindow(IPlatformWindowPtr window)
|
|||
mPlatformWindow = std::move(window);
|
||||
}
|
||||
|
||||
Image* Window::getBackingImage() const
|
||||
Image<uint8_t>* Window::getBackingImage() const
|
||||
{
|
||||
return mBackingImage.get();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue