Click or drag to resize
Ab4d.SharpEngine logo

SceneViewInitialize(Int32, Int32, Single, Single, Int32, Single, ExternalMemoryHandleTypeFlags, ExternalSemaphoreHandleTypeFlags, Int32) Method

Initializes the SceneView with the specified size. This method can be called only when the SceneView was created without a Surface parameter.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void Initialize(
	int width,
	int height,
	float dpiScaleX = 1f,
	float dpiScaleY = 1f,
	int multisampleCount = 1,
	float supersamplingCount = 1f,
	ExternalMemoryHandleTypeFlags backBufferSharedHandleType = ExternalMemoryHandleTypeFlags.None,
	ExternalSemaphoreHandleTypeFlags semaphoresExportableType = ExternalSemaphoreHandleTypeFlags.None,
	int preferredSwapChainImagesCount = 0
)

Parameters

width  Int32
width in pixels (when using DPI scale then the width of the client size that is reported by the UI framework may need to be multiplied by the DPI scale).
height  Int32
height in pixels (when using DPI scale then the height of the client size that is reported by the UI framework may need to be multiplied by the DPI scale).
dpiScaleX  Single  (Optional)
DPI x scale (1 by default). This value is used in line and pixel rendering and scales the line thickness or size of pixels.
dpiScaleY  Single  (Optional)
DPI y scale (1 by default). This value is used in line and pixel rendering and scales the line thickness or size of pixels.
multisampleCount  Int32  (Optional)
multi-sample (MSAA) count (1 by default that does not use any MSAA). MSAA produce smoother edges by storing multiple color values for each pixel.
supersamplingCount  Single  (Optional)
super-sample (SSAA) count (1 by default that does not use any SSAA). SSAA is a technique that renders the image at a higher resolution and then down-samples the rendered image to the final resolution.
backBufferSharedHandleType  ExternalMemoryHandleTypeFlags  (Optional)
The type of shared handle for the back buffer. This can be used to share the back buffer with other processes (None by default)
semaphoresExportableType  ExternalSemaphoreHandleTypeFlags  (Optional)
The type of the shared handle for the synchronization semaphores. This can be used to be able to export the semaphores (None by default). When not None, then this value overrides the EngineCreateOptions.SemaphoresExportableType value.
preferredSwapChainImagesCount  Int32  (Optional)
Preferred swap chain images count - when set to a value bigger then 0, then this value overrides the the EngineCreateOptions.PreferredSwapChainImagesCount value.
Exceptions
ExceptionCondition
InvalidOperationException
See Also