Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::core::OpenGL Class Reference
Inheritance diagram for oe::core::OpenGL:
[legend]
Collaboration diagram for oe::core::OpenGL:
[legend]

Public Member Functions

 OpenGL (Window *context_holder)
 
void resizeViewport (const int32_t x, const int32_t y, const int32_t width, const int32_t height)
 
void scissor (uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 
std::shared_ptr< render::ScreenQuadgetScreenQuad ()
 
const WindowgetWindow () const noexcept
 
void bindContextToWindow (Window &)
 

Static Public Member Functions

static OpenGLgetInstance ()
 
static bool hasContext ()
 

Protected Attributes

std::shared_ptr< render::ScreenQuad_screen_quad
 

Member Function Documentation

◆ getInstance()

static OpenGL * oe::core::OpenGL::getInstance ( )
static

Get the OpenGL instance related to this thread

◆ getScreenQuad()

std::shared_ptr< render::ScreenQuad > oe::core::OpenGL::getScreenQuad ( )

Get a screen covering quad render mesh for screen rendering

◆ hasContext()

static bool oe::core::OpenGL::hasContext ( )
static

Check if this thread has an OpenGL context

◆ resizeViewport()

void oe::core::OpenGL::resizeViewport ( const int32_t  x,
const int32_t  y,
const int32_t  width,
const int32_t  height 
)

Resize screen viewport

◆ scissor()

void oe::core::OpenGL::scissor ( uint32_t  x,
uint32_t  y,
uint32_t  width,
uint32_t  height 
)

Define the scissor area Only allow draws in this area, other draw calls are discarded


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