Loading...
Searching...
No Matches
GlfGLContextRegistrationInterface Class Referenceabstract

Interface for registering a GlfGLContext system. More...

#include <glContext.h>

Public Member Functions

 GlfGLContextRegistrationInterface (const GlfGLContextRegistrationInterface &)=delete
 
GlfGLContextRegistrationInterfaceoperator= (const GlfGLContextRegistrationInterface &)=delete
 
virtual GlfGLContextSharedPtr GetShared ()=0
 If this GLContext system supports a shared context this should return it.
 
virtual GlfGLContextSharedPtr GetCurrent ()=0
 Whatever your GLContext system thinks is the current GL context may not really be the current context if another system has since changed the context.
 

Detailed Description

Interface for registering a GlfGLContext system.

If you subclass GlfGLContext you should subclass this type and instantiate an instance on the heap. It will be cleaned up automatically.

Definition at line 335 of file glContext.h.

Member Function Documentation

◆ GetCurrent()

virtual GlfGLContextSharedPtr GetCurrent ( )
pure virtual

Whatever your GLContext system thinks is the current GL context may not really be the current context if another system has since changed the context.

This method should return what it thinks is the current context. If it thinks there is no current context it should return NULL.

◆ GetShared()

virtual GlfGLContextSharedPtr GetShared ( )
pure virtual

If this GLContext system supports a shared context this should return it.

This will be called at most once.


The documentation for this class was generated from the following file: