← Back to carmenta.com
Carmenta Engine SDK Documentation
×

WindowDrawable.WindowDrawable Constructors

Initializes a new instance of the WindowDrawable class.

Overload List

 NameDescription
Public methodWindowDrawable(System.IntPtr handle)Initializes a new instance of the WindowDrawable class with the given window handle.
Public methodWindowDrawable(System.IntPtr handle, Renderer renderer)Initializes a new instance of the WindowDrawable class with the given window handle and renderer.

WindowDrawable(System.IntPtr handle)

Initializes a new instance of the WindowDrawable class with the given window handle.

Syntax

C#
public WindowDrawable (
    System.IntPtr handle
)

Parameters

handle
Type: System.IntPtr
The window handle of an existing application window.

Remarks

The window handle may be passed as null during but must then be set with the Handle property before the drawable is first used.

WindowDrawable(System.IntPtr handle, Renderer renderer)

Initializes a new instance of the WindowDrawable class with the given window handle and renderer.

Syntax

C#
public WindowDrawable (
    System.IntPtr handle,
    Renderer renderer
)

Parameters

handle
Type: System.IntPtr
The window handle of an existing application window.
renderer
Type: Renderer
The graphics renderer to use.

Remarks

The window handle may be passed as null but must then be set with the Handle property before the drawable is first used.

Please see the Graphics renderers supported by Carmenta Engine page for information about the supported graphics renderers.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept