ISharp |
public interface ISharpEngineSceneView : IComponentBase
The ISharpEngineSceneView type exposes the following members.
Name | Description | |
---|---|---|
CreateOptions | Gets the EngineCreateOptions that were used to create the VulkanInstance and VulkanDevice. | |
GpuDevice | Gets the graphics device object (VulkanDevice). | |
PresentationType | Presentation type defines how the rendered 3D scene will be presented to the platform. Default value is SharedTexture. | |
Scene | Gets the Scene that defines the 3D objects. | |
SceneView | Gets the SceneView that renders the Scene to this control. |
Name | Description | |
---|---|---|
Initialize | Initialize method initializes the engine by using the CreateOptions from this SharpEngineSceneView. | |
Initialize(ActionEngineCreateOptions) | Initialize method initializes the engine by using EngineCreateOptions that are defined by the provided configureAction. | |
Initialize(EngineCreateOptions) | Initialize method initializes the engine by using the specified EngineCreateOptions. | |
Initialize(VulkanDevice) | Initialize method initializes the engine by using the specified VulkanDevice object. | |
IsPresentationTypeSupported(PresentationTypes) | Returns true when the specified presentationType is supported on the current GpuDevice. This method must not be called before the GpuDevice is created (before SharpEngineSceneView is initialized). | |
IsPresentationTypeSupported(PresentationTypes, String) | Returns true when the specified presentationType is supported on the current GpuDevice. When presentation type is not supported, a string with additional information is set to the additionalInfo parameter. This method must not be called before the GpuDevice is created (before SharpEngineSceneView is initialized). | |
IsPresentationTypeSupported(PresentationTypes, VulkanDevice, String) | Returns true when the specified presentationType is supported on the specified GpuDevice. When presentation type is not supported, a string with additional information is set to the additionalInfo parameter. | |
RenderScene | RenderScene renders the scene. The method first calls the SceneUpdating event. If forceRender is false then the scene is rendered only if there are any changes in the Scene or SceneView. If forceUpdate is true then the RenderingLayers are always regenerated (otherwise RenderingLayers are regenerated only when this is required because the changes require that). |
Name | Description | |
---|---|---|
GpuDeviceCreated | Called after the GpuDevice object was created. If device creation has failed, then GpuDeviceCreationFailed event is triggered. | |
GpuDeviceCreationFailed | Called when the device creation has failed. User can set the IsHandled property to true to prevent showing error text that is shown by SharpEngineSceneView. | |
PresentationTypeChanged | Called when the selected PresentationType is not supported and was changed to a fallback PresentationType. The event parameter may provide some additional information about the reason for change. | |
SceneRendered | Called after the scene has been rendered. | |
SceneUpdating | Called when the scene is being updated and before it is rendered. | |
SceneViewInitialized | Called after the SceneView object have been initialized (have a valid view size and the back buffers were created). | |
ViewSizeChanged | Called when the size of the rendering area is changed. The event is also called after the back buffers are initialized for the first time. |