Minetest  5.4.0
RenderingCore Class Referenceabstract

#include <core.h>

+ Inheritance diagram for RenderingCore:
+ Collaboration diagram for RenderingCore:

Public Member Functions

 RenderingCore (IrrlichtDevice *_device, Client *_client, Hud *_hud)
 
 RenderingCore (const RenderingCore &)=delete
 
 RenderingCore (RenderingCore &&)=delete
 
virtual ~RenderingCore ()
 
RenderingCoreoperator= (const RenderingCore &)=delete
 
RenderingCoreoperator= (RenderingCore &&)=delete
 
void initialize ()
 
void draw (video::SColor _skycolor, bool _show_hud, bool _show_minimap, bool _draw_wield_tool, bool _draw_crosshair)
 
v2u32 getVirtualSize () const
 

Protected Member Functions

void updateScreenSize ()
 
virtual void initTextures ()
 
virtual void clearTextures ()
 
virtual void beforeDraw ()
 
virtual void drawAll ()=0
 
void draw3D ()
 
void drawHUD ()
 
void drawPostFx ()
 

Protected Attributes

v2u32 screensize
 
v2u32 virtual_size
 
video::SColor skycolor
 
bool show_hud
 
bool show_minimap
 
bool draw_wield_tool
 
bool draw_crosshair
 
IrrlichtDevice * device
 
video::IVideoDriver * driver
 
scene::ISceneManager * smgr
 
gui::IGUIEnvironment * guienv
 
Clientclient
 
Cameracamera
 
Minimapmapper
 
Hudhud
 

Constructor & Destructor Documentation

◆ RenderingCore() [1/3]

RenderingCore::RenderingCore ( IrrlichtDevice *  _device,
Client _client,
Hud _hud 
)

References driver, screensize, and virtual_size.

◆ RenderingCore() [2/3]

RenderingCore::RenderingCore ( const RenderingCore )
delete

◆ RenderingCore() [3/3]

RenderingCore::RenderingCore ( RenderingCore &&  )
delete

◆ ~RenderingCore()

RenderingCore::~RenderingCore ( )
virtual

References clearTextures().

+ Here is the call graph for this function:

Member Function Documentation

◆ beforeDraw()

virtual void RenderingCore::beforeDraw ( )
inlineprotectedvirtual

Reimplemented in RenderingCoreStereo, and RenderingCorePlain.

Referenced by draw().

+ Here is the caller graph for this function:

◆ clearTextures()

virtual void RenderingCore::clearTextures ( )
inlineprotectedvirtual

Reimplemented in RenderingCoreSideBySide, RenderingCorePlain, and RenderingCoreInterlaced.

Referenced by ~RenderingCore(), and updateScreenSize().

+ Here is the caller graph for this function:

◆ draw()

void RenderingCore::draw ( video::SColor  _skycolor,
bool  _show_hud,
bool  _show_minimap,
bool  _draw_wield_tool,
bool  _draw_crosshair 
)

References beforeDraw(), draw_crosshair, draw_wield_tool, drawAll(), driver, screensize, show_hud, show_minimap, skycolor, and updateScreenSize().

+ Here is the call graph for this function:

◆ draw3D()

void RenderingCore::draw3D ( )
protected

References camera, draw_wield_tool, Hud::drawSelectionMesh(), Camera::drawWieldedTool(), driver, hud, show_hud, and smgr.

Referenced by RenderingCorePlain::drawAll(), and RenderingCoreStereo::renderBothImages().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawAll()

virtual void RenderingCore::drawAll ( )
protectedpure virtual

Implemented in RenderingCoreSideBySide, RenderingCorePlain, RenderingCoreInterlaced, and RenderingCoreAnaglyph.

Referenced by draw().

+ Here is the caller graph for this function:

◆ drawHUD()

void RenderingCore::drawHUD ( )
protected

References camera, draw_crosshair, Hud::drawCrosshair(), Hud::drawHotbar(), Hud::drawLuaElements(), Minimap::drawMinimap(), Camera::drawNametags(), Camera::getOffset(), guienv, hud, mapper, show_hud, and show_minimap.

Referenced by RenderingCoreAnaglyph::drawAll(), RenderingCoreInterlaced::drawAll(), RenderingCorePlain::drawAll(), and RenderingCoreSideBySide::resetEye().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawPostFx()

void RenderingCore::drawPostFx ( )
protected

References camera, and Camera::getCameraMode().

Referenced by RenderingCoreAnaglyph::drawAll(), and RenderingCorePlain::drawAll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getVirtualSize()

v2u32 RenderingCore::getVirtualSize ( ) const
inline

References virtual_size.

◆ initialize()

void RenderingCore::initialize ( )

References initTextures().

+ Here is the call graph for this function:

◆ initTextures()

virtual void RenderingCore::initTextures ( )
inlineprotectedvirtual

Reimplemented in RenderingCoreSideBySide, RenderingCorePlain, and RenderingCoreInterlaced.

Referenced by initialize(), and updateScreenSize().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

RenderingCore& RenderingCore::operator= ( const RenderingCore )
delete

◆ operator=() [2/2]

RenderingCore& RenderingCore::operator= ( RenderingCore &&  )
delete

◆ updateScreenSize()

void RenderingCore::updateScreenSize ( )
protected

References clearTextures(), initTextures(), screensize, and virtual_size.

Referenced by draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ camera

Camera* RenderingCore::camera
protected

◆ client

Client* RenderingCore::client
protected

◆ device

IrrlichtDevice* RenderingCore::device
protected

◆ draw_crosshair

bool RenderingCore::draw_crosshair
protected

Referenced by draw(), and drawHUD().

◆ draw_wield_tool

bool RenderingCore::draw_wield_tool
protected

Referenced by draw(), and draw3D().

◆ driver

◆ guienv

gui::IGUIEnvironment* RenderingCore::guienv
protected

Referenced by drawHUD().

◆ hud

Hud* RenderingCore::hud
protected

◆ mapper

Minimap* RenderingCore::mapper
protected

Referenced by drawHUD().

◆ screensize

◆ show_hud

bool RenderingCore::show_hud
protected

Referenced by draw(), draw3D(), and drawHUD().

◆ show_minimap

bool RenderingCore::show_minimap
protected

Referenced by draw(), and drawHUD().

◆ skycolor

◆ smgr

scene::ISceneManager* RenderingCore::smgr
protected

Referenced by draw3D().

◆ virtual_size

v2u32 RenderingCore::virtual_size
protected

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