angle_windowsstore.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
  3. // Use of this source code is governed by a BSD-style license that can be
  4. // found in the LICENSE file.
  5. //
  6. // angle_windowsstore.h:
  7. #ifndef ANGLE_WINDOWSSTORE_H_
  8. #define ANGLE_WINDOWSSTORE_H_
  9. // The following properties can be set on the CoreApplication to support additional
  10. // ANGLE configuration options.
  11. //
  12. // The Visual Studio sample templates provided with this version of ANGLE have examples
  13. // of how to set these property values.
  14. //
  15. // Property: EGLNativeWindowTypeProperty
  16. // Type: IInspectable
  17. // Description: Set this property to specify the window type to use for creating a surface.
  18. // If this property is missing, surface creation will fail.
  19. //
  20. const wchar_t EGLNativeWindowTypeProperty[] = L"EGLNativeWindowTypeProperty";
  21. //
  22. // Property: EGLRenderSurfaceSizeProperty
  23. // Type: Size
  24. // Description: Set this property to specify a preferred size in pixels of the render surface.
  25. // The render surface size width and height must be greater than 0.
  26. // If this property is set, then the render surface size is fixed.
  27. // The render surface will then be scaled to the window dimensions.
  28. // If this property is missing, a default behavior will be provided.
  29. // The default behavior uses the window size if a CoreWindow is specified or
  30. // the size of the SwapChainPanel control if one is specified.
  31. //
  32. const wchar_t EGLRenderSurfaceSizeProperty[] = L"EGLRenderSurfaceSizeProperty";
  33. //
  34. // Property: EGLRenderResolutionScaleProperty
  35. // Type: Single
  36. // Description: Use this to specify a preferred scale for the render surface compared to the window.
  37. // For example, if the window is 800x480, and:
  38. // - scale is set to 0.5f then the surface will be 400x240
  39. // - scale is set to 1.2f then the surface will be 960x576
  40. // If the window resizes or rotates then the surface will resize accordingly.
  41. // EGLRenderResolutionScaleProperty and EGLRenderSurfaceSizeProperty cannot both be set.
  42. // The scale factor should be > 0.0f.
  43. //
  44. const wchar_t EGLRenderResolutionScaleProperty[] = L"EGLRenderResolutionScaleProperty";
  45. #endif // ANGLE_WINDOWSSTORE_H_