Click or drag to resize
Ab4d.SharpEngine logo

SceneViewResize(Boolean) Method

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).

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public bool Resize(
	bool renderNextFrameAfterResize = true
)

Parameters

renderNextFrameAfterResize  Boolean  (Optional)
true (by default) to render next frame after resizing

Return Value

Boolean
false when no resize was needed because the size was already set
Exceptions
ExceptionCondition
SharpEngineExceptionwhen Surface is null
See Also