 |
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.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic bool Resize(
bool renderNextFrameAfterResize = true
)
Parameters
- renderNextFrameAfterResize Boolean (Optional)
- true (by default) to render next frame after resizing
Return Value
Booleanfalse when no resize was needed because the size was already set
Exceptions
See Also