 |
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.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
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 |
See Also