Class ExternalOpenGLDisplay
A specialized type of display able to render into an externally created OpenGL window
Inherited Members
Namespace: ic4
Assembly: ic4dotnet.dll
Syntax
public class ExternalOpenGLDisplay : Display, IDisposable, IDisplay
Constructors
ExternalOpenGLDisplay()
Creates a new external OpenGL display
Declaration
public ExternalOpenGLDisplay()
Exceptions
| Type | Condition |
|---|---|
| IC4Exception | Check ErrorCode and ToString() for details. |
Methods
Initialize()
Initialize the external OpenGL display.
Declaration
public void Initialize()
Remarks
This function must be called with the OpenGL context activated for the executing thread (e.g. makeCurrent).
Exceptions
| Type | Condition |
|---|---|
| IC4Exception | Check ErrorCode and ToString() for details. |
NotifyWindowClosed()
Notifies the display component that the window was closed.
Declaration
public void NotifyWindowClosed()
Exceptions
| Type | Condition |
|---|---|
| IC4Exception | Check ErrorCode and ToString() for details. |
Render(int, int)
Updates the external OpenGL display with the newest image available.
Declaration
public void Render(int windowWidth, int windowHeight)
Parameters
| Type | Name | Description |
|---|---|---|
| int | windowWidth | Width of the display window in physical pixels |
| int | windowHeight | Height of the display window in physical pixels |
Remarks
This function must be called with the OpenGL context activated for the executing thread (e.g. makeCurrent).
Exceptions
| Type | Condition |
|---|---|
| IC4Exception | Check ErrorCode and ToString() for details. |