Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::render::Manager Class Reference

Render manager. More...

#include <OxygenEngine/render/manager.h>

Public Member Functions

 Manager (scene::Manager &scene_manager)
 
 Manager (scene::Manager &scene_manager, TextureManager &texture_manager)
 
void draw (const RenderingPass pass, const bool draw_skybox=true)
 Draw only specific nodes of specified type.
 
void drawSkybox () const
 Draw only the skybox.
 
void bindSceneNode (scene::Node &node, const RenderingPass pass, const bool recursion=false)
 
void removeRenderNode (scene::RenderableNode *node)
 
std::shared_ptr< oe::render::ShaderBasegetOverrideShader () const noexcept
 
void setOverrideShader (std::shared_ptr< oe::render::ShaderBase > shader) noexcept
 
std::shared_ptr< oe::render::SkyboxgetSkybox () const noexcept
 
void setSkybox (std::shared_ptr< oe::render::Skybox > skybox) noexcept
 
void setCubicSkybox (std::shared_ptr< oe::render::Cubemap > cubemap) noexcept
 Set cubemap as scene Skybox.
 
scene::ManagergetSceneManager () const noexcept
 Get the scene manager bound to this render manager.
 
TextureManagergetTextureManager ()
 Get the texture manager bound to this render manager.
 

Detailed Description

Render manager.

Member Function Documentation

◆ draw()

void oe::render::Manager::draw ( const RenderingPass  pass,
const bool  draw_skybox = true 
)

Draw only specific nodes of specified type.

Note
without argument it draws all nodes

◆ setCubicSkybox()

void oe::render::Manager::setCubicSkybox ( std::shared_ptr< oe::render::Cubemap cubemap)
noexcept

Set cubemap as scene Skybox.

Parameters
skybox
Note
If the scene has a lighting component, the cubemap will be also used as default reflection probe

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