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
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
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