C# Class OpenTK.Platform.Windows.WinGLContext

Provides methods to create and control an opengl context on the Windows platform. This class supports OpenTK, and is not intended for use by OpenTK programs.
Inheritance: DesktopGraphicsContext
Mostra file Open project: andykorth/opentk Class Usage Examples

Private Properties

Property Type Description
DestroyContext void
Dispose void
Init void
SetGraphicsModePFD void
WinGLContext System

Public Methods

Method Description
Dispose ( ) : void
GetAddress ( string function_string ) : IntPtr
LoadAll ( ) : void
MakeCurrent ( IWindowInfo window ) : void
SwapBuffers ( ) : void
ToString ( ) : string

Returns a System.String describing this OpenGL context.

WinGLContext ( ContextHandle handle, WinWindowInfo window, IGraphicsContext sharedContext, int major, int minor, GraphicsContextFlags flags ) : System
WinGLContext ( OpenTK.Graphics.GraphicsMode format, WinWindowInfo window, IGraphicsContext sharedContext, int major, int minor, GraphicsContextFlags flags ) : System

Private Methods

Method Description
DestroyContext ( ) : void
Dispose ( bool calledManually ) : void
Init ( ) : void
SetGraphicsModePFD ( OpenTK.Graphics.GraphicsMode mode, WinWindowInfo window ) : void
WinGLContext ( ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetAddress() public method

public GetAddress ( string function_string ) : IntPtr
function_string string
return System.IntPtr

LoadAll() public method

public LoadAll ( ) : void
return void

MakeCurrent() public method

public MakeCurrent ( IWindowInfo window ) : void
window IWindowInfo
return void

SwapBuffers() public method

public SwapBuffers ( ) : void
return void

ToString() public method

Returns a System.String describing this OpenGL context.
public ToString ( ) : string
return string

WinGLContext() public method

public WinGLContext ( ContextHandle handle, WinWindowInfo window, IGraphicsContext sharedContext, int major, int minor, GraphicsContextFlags flags ) : System
handle ContextHandle
window WinWindowInfo
sharedContext IGraphicsContext
major int
minor int
flags GraphicsContextFlags
return System

WinGLContext() public method

public WinGLContext ( OpenTK.Graphics.GraphicsMode format, WinWindowInfo window, IGraphicsContext sharedContext, int major, int minor, GraphicsContextFlags flags ) : System
format OpenTK.Graphics.GraphicsMode
window WinWindowInfo
sharedContext IGraphicsContext
major int
minor int
flags GraphicsContextFlags
return System