AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
OpenGLRenderingContext Class Reference

Public Member Functions

 OpenGLRenderingContext (const ARenderingContextOptions::OpenGL &config)
 
void init (const Init &init) override
 
AImage makeScreenshot () override
 
void destroyNativeWindow (AWindowBase &window) override
 
void beginPaint (AWindowBase &window) override
 
void endPaint (AWindowBase &window) override
 
void beginResize (AWindowBase &window) override
 
void endResize (AWindowBase &window) override
 
uint32_t getDefaultFb () const noexcept
 
void bindViewport ()
 
glm::uvec2 viewportSize () const noexcept
 
uint32_t getSupersamplingRatio () const noexcept
 
AOptional< gl::Framebuffer * > framebuffer () noexcept
 
IRendererrenderer () override
 

Static Public Member Functions

static gl::Framebuffer newOffscreenRenderingFramebuffer (glm::uvec2 initialSize)
 

Additional Inherited Members

- Protected Attributes inherited from CommonRenderingContext
bool mSmoothResize = !(ARenderingContextOptions::get().flags & ARenderContextFlags::NO_SMOOTH)
 

Member Function Documentation

◆ beginPaint()

void OpenGLRenderingContext::beginPaint ( AWindowBase window)
overridevirtual

Reimplemented from CommonRenderingContext.

◆ beginResize()

void OpenGLRenderingContext::beginResize ( AWindowBase window)
overridevirtual

Implements IRenderingContext.

◆ destroyNativeWindow()

void OpenGLRenderingContext::destroyNativeWindow ( AWindowBase window)
overridevirtual

Reimplemented from CommonRenderingContext.

◆ endPaint()

void OpenGLRenderingContext::endPaint ( AWindowBase window)
overridevirtual

Reimplemented from CommonRenderingContext.

◆ endResize()

void OpenGLRenderingContext::endResize ( AWindowBase window)
overridevirtual

Implements IRenderingContext.

◆ init()

void OpenGLRenderingContext::init ( const Init init)
overridevirtual

Reimplemented from CommonRenderingContext.

◆ makeScreenshot()

AImage OpenGLRenderingContext::makeScreenshot ( )
overridevirtual

Implements IRenderingContext.

◆ renderer()

IRenderer & OpenGLRenderingContext::renderer ( )
inlineoverridevirtual

Implements IRenderingContext.


The documentation for this class was generated from the following files:
Inheritance diagram for OpenGLRenderingContext:
Collaboration diagram for OpenGLRenderingContext: