Click or drag to resize
Ab4d.SharpEngine logo

SceneViewResize(Int32, Int32, SurfaceTransformFlagsKHR, Boolean) Method

Resizes the current SceneView to the provided size. When SceneView is rendered to the Surface, then call the Resize(Boolean) method.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public bool Resize(
	int newWidth,
	int newHeight,
	SurfaceTransformFlagsKHR preTransform = SurfaceTransformFlagsKHR.None,
	bool renderNextFrameAfterResize = true
)

Parameters

newWidth  Int32
new width
newHeight  Int32
new height
preTransform  SurfaceTransformFlagsKHR  (Optional)
pre-transform (None by default)
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 not null
See Also