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

Public Member Functions

 Renderer (Window *context_holder)
Public Member Functions inherited from oe::core::OpenGL
 OpenGL (Window *context_holder)
 Constructor.
void resizeViewport (const int32_t x, const int32_t y, const int32_t width, const int32_t height)
 Resize screen viewport.
void 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.
std::shared_ptr< render::ScreenQuadgetScreenQuad ()
 Get a screen covering quad render mesh for screen rendering.
const WindowgetWindow () const noexcept
 Get a reference to the Window bound to the context.
void bindContextToWindow (Window &window)
 Bind the OpenGL to a Window.

Static Public Member Functions

static Renderer * getInstance () noexcept
Static Public Member Functions inherited from oe::core::OpenGL
static OpenGLgetInstance ()
 Get the OpenGL instance related to this thread.
static bool hasContext ()
 Check if this thread has an OpenGL context.

Additional Inherited Members

Protected Member Functions inherited from oe::util::NonCopyable
 NonCopyable (NonCopyable &&)=default
NonCopyable & operator= (NonCopyable &&)=default
Protected Attributes inherited from oe::core::OpenGL
std::shared_ptr< render::ScreenQuad_screen_quad
 Mesh covering whole screen mainly used for post-processing.

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