OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SdlOpenGLContext Class Reference

#include <SdlOpenGLContext.h>

Inheritance diagram for SdlOpenGLContext:
PlatformOpenGLContext

Public Member Functions

 SdlOpenGLContext (SdlPlatformSharedState *state, SDL_Window *window, SDL_GLContext context)
 
virtual ~SdlOpenGLContext ()
 
virtual bool bind () override
 
virtual bool unbind () override
 
virtual void * nativeHandle () override
 
virtual void swapBuffers () override
 
virtual void * getProcAddress (const char *name) override
 
- Public Member Functions inherited from PlatformOpenGLContext
virtual ~PlatformOpenGLContext ()=default
 
virtual bool bind ()=0
 
virtual bool unbind ()=0
 
virtual void * nativeHandle ()=0
 
virtual void swapBuffers ()=0
 
virtual void * getProcAddress (const char *name)=0
 

Private Attributes

SdlPlatformSharedState_state = nullptr
 
SDL_Window * _window = nullptr
 
SDL_GLContext _context = nullptr
 

Constructor & Destructor Documentation

◆ SdlOpenGLContext()

SdlOpenGLContext::SdlOpenGLContext ( SdlPlatformSharedState state,
SDL_Window *  window,
SDL_GLContext  context 
)

◆ ~SdlOpenGLContext()

SdlOpenGLContext::~SdlOpenGLContext ( )
virtual

Member Function Documentation

◆ bind()

bool SdlOpenGLContext::bind ( )
overridevirtual

Implements PlatformOpenGLContext.

◆ getProcAddress()

void * SdlOpenGLContext::getProcAddress ( const char *  name)
overridevirtual

Implements PlatformOpenGLContext.

◆ nativeHandle()

void * SdlOpenGLContext::nativeHandle ( )
overridevirtual

Implements PlatformOpenGLContext.

◆ swapBuffers()

void SdlOpenGLContext::swapBuffers ( )
overridevirtual

Implements PlatformOpenGLContext.

◆ unbind()

bool SdlOpenGLContext::unbind ( )
overridevirtual

Implements PlatformOpenGLContext.

Member Data Documentation

◆ _context

SDL_GLContext SdlOpenGLContext::_context = nullptr
private

◆ _state

SdlPlatformSharedState* SdlOpenGLContext::_state = nullptr
private

◆ _window

SDL_Window* SdlOpenGLContext::_window = nullptr
private

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