blob: 1123c5969cf6124e6ff728870b5ed1e15f829964 [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"
#include "third_party/angle/include/angle_windowsstore.h"
using Windows::UI::Core::CoreWindow;
SbWindowPrivate::SbWindowPrivate(int width, int height)
: width(width),
height(height) {
angle_property_set = ref new Windows::Foundation::Collections::PropertySet();
angle_property_set->Insert(
ref new Platform::String(EGLNativeWindowTypeProperty),
starboard::shared::uwp::ApplicationUwp::Get()->GetCoreWindow().Get());
angle_property_set->Insert(
ref new Platform::String(EGLRenderSurfaceSizeProperty),
Windows::Foundation::PropertyValue::CreateSize(
Windows::Foundation::Size(width, height)));
}
SbWindowPrivate::~SbWindowPrivate() {}