 |
SceneViewGetCurrentSurfaceSize Method |
Gets the size of the
Surface. The size information is obtained from the surface's current
extent. When the current extent does not define size (for example, this seems to be the case with Silk.NET
under Linux with Wayland), the fallback width and height are used, if they are supplied by the caller
(Initialize and Resize methods), who would typically obtain them from the windowing/presentation
framework. If fallback dimensions are not provided (their values are 0), the existing scene view dimensions are used.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxprotected virtual IntSize GetCurrentSurfaceSize(
bool updateSurfaceCapabilities,
int fallbackWidth = 0,
int fallbackHeight = 0
)
Parameters
- updateSurfaceCapabilities Boolean
- updateSurfaceCapabilities
- fallbackWidth Int32 (Optional)
- Optional fallback width value when surface does not provide size information.
- fallbackHeight Int32 (Optional)
- Optional fallback height value when surface does not provide size information.
Return Value
IntSizesize of the Surface
ExceptionsException | Condition |
---|
InvalidOperationException | when Surface is null |
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneView.GetCurrentSurfaceSize(System.Boolean,System.Int32,System.Int32)"]
See Also