C# Класс Axiom.RenderSystems.OpenGL.GLContext

Class that encapsulates an GL context. (IE a window/pbuffer). This is a virtual base class which should be implemented in a GLSupport. This object can also be used to cache renderstate if we decide to do so in the future.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clone ( ) : GLContext

Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.

The caller is responsible for deleting the returned context.

Dispose ( ) : void
EndCurrent ( ) : void

This is called before another context is made current. By default, nothing is done here.

GLContext ( ) : System
ReleaseContext ( ) : void
SetCurrent ( ) : void

Enable the context. All subsequent rendering commands will go here.

Защищенные методы

Метод Описание
dispose ( bool disposeManagedResources ) : void

Class level dispose method

When implementing this method in an inherited class the following template should be used; protected override void dispose( bool disposeManagedResources ) { if ( !isDisposed ) { if ( disposeManagedResources ) { // Dispose managed resources. } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } // If it is available, make the call to the // base class's Dispose(Boolean) method base.dispose( disposeManagedResources ); }

Описание методов

Clone() публичный абстрактный метод

Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.
The caller is responsible for deleting the returned context.
public abstract Clone ( ) : GLContext
Результат GLContext

Dispose() публичный метод

public Dispose ( ) : void
Результат void

EndCurrent() публичный метод

This is called before another context is made current. By default, nothing is done here.
public EndCurrent ( ) : void
Результат void

GLContext() публичный метод

public GLContext ( ) : System
Результат System

ReleaseContext() публичный метод

public ReleaseContext ( ) : void
Результат void

SetCurrent() публичный абстрактный метод

Enable the context. All subsequent rendering commands will go here.
public abstract SetCurrent ( ) : void
Результат void

dispose() защищенный метод

Class level dispose method
When implementing this method in an inherited class the following template should be used; protected override void dispose( bool disposeManagedResources ) { if ( !isDisposed ) { if ( disposeManagedResources ) { // Dispose managed resources. } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } // If it is available, make the call to the // base class's Dispose(Boolean) method base.dispose( disposeManagedResources ); }
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool True if Unmanaged resources should be released.
Результат void