MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLEGLContextCallbacks Class Referenceabstract

Detailed Description

When using tiled buffered layers (see TSLOptionTileBufferedLayers from TSLOptionEnum) in conjunction with a TSLEGLSurface an implementation of this interface must be set on the drawing surface before activating tiled buffered layers. This class is responsible for creating and managing OpenGL contexts used in drawing surface created background threads.

Public Member Functions

virtual void contextLost (void *context)=0
 
virtual void * createContext (TSLEGLSurface *sharedSurface)=0
 
virtual void deleteContext (void *context)=0
 
virtual ~TSLEGLContextCallbacks ()=0
 

Constructor & Destructor Documentation

◆ ~TSLEGLContextCallbacks()

TSLEGLContextCallbacks::~TSLEGLContextCallbacks ( )
inlinepure virtual

Member Function Documentation

◆ contextLost()

virtual void TSLEGLContextCallbacks::contextLost ( void * context)
pure virtual

Called when the drawing surface's primary context has been lost due to a power event. The application should delete the given OpenGL context.

Parameters
contextThe context previously returned from createContext to delete

◆ createContext()

virtual void * TSLEGLContextCallbacks::createContext ( TSLEGLSurface * sharedSurface)
pure virtual

Called when the drawing surface needs to create an OpenGL context for a background thread.

If sharedSurface is non-null, the created OpenGL context should be created using the existing OpenGL context for the drawing surface as the share_context parameter to eglCreateContext.

The created context should be returned.

Parameters
sharedSurfaceThe drawing surface whose OpenGL context should be shared into the created context.

◆ deleteContext()

virtual void TSLEGLContextCallbacks::deleteContext ( void * context)
pure virtual

Called when a context previously returned from createContext should be destroyed.

Parameters
contextThe context previously returned from createContext to delete