![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
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 |
|
inlinepure virtual |
|
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.
context | The context previously returned from createContext to delete |
|
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.
sharedSurface | The drawing surface whose OpenGL context should be shared into the created context. |
|
pure virtual |
Called when a context previously returned from createContext should be destroyed.
context | The context previously returned from createContext to delete |