Click or drag to resize
Ab4d.SharpEngine logo

SceneView.Resize Method

Overload List
 NameDescription
Public methodResize(Boolean) Resizes the SceneView by updating the size to the size of the Surface. When no Surface is used, then Resize(Int32, Int32, Int32, Single, SurfaceTransformFlagsKHR, Boolean) must be used. This method does not support supplying fallback dimensions for situations when the surface does not provide size information (for example, when using Silk.NET under Wayland on Linux). Therefore, Resize(Int32, Int32, Int32, Single, SurfaceTransformFlagsKHR, Boolean) should be used instead, with fallback dimensions (obtained from the presentation/windowing framework) passed as the new width and height (if fallback dimensions are unavailable, they can be set to 0).
Public methodResize(Int32, Int32, Boolean) Resizes the SceneView. When the SceneView is not rendered to a Surface, it is directly resized to the specified size. When the SceneView is rendered to a Surface and the surface provides size information, the latter is used and the provided dimensions are ignored. However, if the surface does not provide size information, the provided dimensions are used as a fallback. This allows caller to accommodate situations when rendering to a surface that does not provide size information (e.g., using Silk.NET under Wayland on Linux).
Public methodResize(Int32, Int32, Int32, Single, SurfaceTransformFlagsKHR, Boolean) Resizes the SceneView. When the SceneView is not rendered to a Surface, it is directly resized to the specified size. When the SceneView is rendered to a Surface and the surface provides size information, the size from the surface is used and the provided dimensions are ignored. However, if the surface does not provide size information, the provided dimensions are used as a fallback. This allows caller to accommodate situations when rendering to a surface that does not provide size information (e.g., using Silk.NET under Wayland on Linux).
Top
See Also