Show / Hide Table of Contents

Interface IGameWindow

Defines the interface for a GameWindow.

Inherited Members
INativeWindow.Icon
INativeWindow.Title
INativeWindow.Focused
INativeWindow.Visible
INativeWindow.Exists
INativeWindow.WindowInfo
INativeWindow.WindowState
INativeWindow.WindowBorder
INativeWindow.Bounds
INativeWindow.Location
INativeWindow.Size
INativeWindow.X
INativeWindow.Y
INativeWindow.Width
INativeWindow.Height
INativeWindow.ClientRectangle
INativeWindow.ClientSize
INativeWindow.Cursor
INativeWindow.CursorVisible
INativeWindow.CursorGrabbed
INativeWindow.Close()
INativeWindow.ProcessEvents()
INativeWindow.PointToClient(Point)
INativeWindow.PointToScreen(Point)
INativeWindow.Move
INativeWindow.Resize
INativeWindow.Closing
INativeWindow.Closed
INativeWindow.Disposed
INativeWindow.IconChanged
INativeWindow.TitleChanged
INativeWindow.VisibleChanged
INativeWindow.FocusedChanged
INativeWindow.WindowBorderChanged
INativeWindow.WindowStateChanged
INativeWindow.KeyDown
INativeWindow.KeyPress
INativeWindow.KeyUp
INativeWindow.MouseLeave
INativeWindow.MouseEnter
INativeWindow.MouseDown
INativeWindow.MouseUp
INativeWindow.MouseMove
INativeWindow.MouseWheel
INativeWindow.FileDrop
IDisposable.Dispose()
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)

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>
In This Article
Back to top Generated by DocFX