blob: fd79b8d1f92d1489fa3b0e540ddb05b25d09ab19 [file] [log] [blame]
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <EGL/egl.h>
#include <windows.h>
#include "starboard/shared/uwp/application_uwp.h"
#include "starboard/shared/uwp/window_internal.h"
using Windows::UI::Core::CoreWindow;
// TODO: Make sure the width and height here behave well given that we want
// 1080 video, but perhaps 4k UI where applicable.
SbWindowPrivate::SbWindowPrivate(const SbWindowOptions* options)
: width(options->size.width),
height(options->size.height) {
egl_native_window_ = reinterpret_cast<EGLNativeWindowType>(
starboard::shared::uwp::ApplicationUwp::Get()->GetCoreWindow().Get());
}
SbWindowPrivate::~SbWindowPrivate() {}