Interface IGameWindow
Defines the interface for a GameWindow.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.dll
Syntax
public interface IGameWindow : INativeWindow, IDisposable
Methods
MakeCurrent()
Makes the GraphicsContext current on the calling thread.
Declaration
void MakeCurrent()
Run()
Enters the game loop of the GameWindow using the maximum update rate.
Declaration
void Run()
See Also
Run(Double)
Enters the game loop of the GameWindow using the specified update rate.
Declaration
void Run(double updateRate)
Parameters
Type | Name | Description |
---|---|---|
Double | updateRate |
SwapBuffers()
Swaps the front and back buffers of the current GraphicsContext, presenting the rendered scene to the user.
Declaration
void SwapBuffers()
Events
Load
Occurs before the window is displayed for the first time.
Declaration
event EventHandler<EventArgs> Load
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
RenderFrame
Occurs when it is time to render a frame.
Declaration
event EventHandler<FrameEventArgs> RenderFrame
Event Type
Type | Description |
---|---|
EventHandler<FrameEventArgs> |
Unload
Occurs before the window is destroyed.
Declaration
event EventHandler<EventArgs> Unload
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
UpdateFrame
Occurs when it is time to update a frame.
Declaration
event EventHandler<FrameEventArgs> UpdateFrame
Event Type
Type | Description |
---|---|
EventHandler<FrameEventArgs> |