Minetest  5.4.0
RenderingCoreSideBySide Class Reference

#include <sidebyside.h>

+ Inheritance diagram for RenderingCoreSideBySide:
+ Collaboration diagram for RenderingCoreSideBySide:

Public Member Functions

 RenderingCoreSideBySide (IrrlichtDevice *_device, Client *_client, Hud *_hud, bool _horizontal=false, bool _flipped=false)
 
void drawAll () override
 
- Public Member Functions inherited from RenderingCoreStereo
 RenderingCoreStereo (IrrlichtDevice *_device, Client *_client, Hud *_hud)
 
- Public Member Functions inherited from RenderingCore
 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 initTextures () override
 
void clearTextures () override
 
void useEye (bool right) override
 
void resetEye () override
 
- Protected Member Functions inherited from RenderingCoreStereo
void beforeDraw () override
 
void renderBothImages ()
 
- Protected Member Functions inherited from RenderingCore
void updateScreenSize ()
 
void draw3D ()
 
void drawHUD ()
 
void drawPostFx ()
 

Protected Attributes

video::ITexture * left = nullptr
 
video::ITexture * right = nullptr
 
bool horizontal = false
 
bool flipped = false
 
core::dimension2du image_size
 
v2s32 rpos
 
- Protected Attributes inherited from RenderingCoreStereo
scene::ICameraSceneNode * cam
 
core::matrix4 base_transform
 
float eye_offset
 
- Protected Attributes inherited from RenderingCore
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

◆ RenderingCoreSideBySide()

RenderingCoreSideBySide::RenderingCoreSideBySide ( IrrlichtDevice *  _device,
Client _client,
Hud _hud,
bool  _horizontal = false,
bool  _flipped = false 
)

Member Function Documentation

◆ clearTextures()

void RenderingCoreSideBySide::clearTextures ( )
overrideprotectedvirtual

Reimplemented from RenderingCore.

References RenderingCore::driver, left, and right.

◆ drawAll()

void RenderingCoreSideBySide::drawAll ( )
overridevirtual

Implements RenderingCore.

References RenderingCore::driver, image_size, left, RenderingCoreStereo::renderBothImages(), right, rpos, and RenderingCore::screensize.

+ Here is the call graph for this function:

◆ initTextures()

void RenderingCoreSideBySide::initTextures ( )
overrideprotectedvirtual

◆ resetEye()

void RenderingCoreSideBySide::resetEye ( )
overrideprotectedvirtual

Reimplemented from RenderingCoreStereo.

References RenderingCore::drawHUD(), RenderingCore::driver, RenderingCore::hud, RenderingCoreStereo::resetEye(), Hud::resizeHotbar(), and RenderingCore::skycolor.

+ Here is the call graph for this function:

◆ useEye()

void RenderingCoreSideBySide::useEye ( bool  right)
overrideprotectedvirtual

Reimplemented from RenderingCoreStereo.

References RenderingCore::driver, flipped, left, right, RenderingCore::skycolor, and RenderingCoreStereo::useEye().

+ Here is the call graph for this function:

Member Data Documentation

◆ flipped

bool RenderingCoreSideBySide::flipped = false
protected

Referenced by useEye().

◆ horizontal

bool RenderingCoreSideBySide::horizontal = false
protected

Referenced by initTextures().

◆ image_size

core::dimension2du RenderingCoreSideBySide::image_size
protected

Referenced by drawAll(), and initTextures().

◆ left

video::ITexture* RenderingCoreSideBySide::left = nullptr
protected

◆ right

video::ITexture* RenderingCoreSideBySide::right = nullptr
protected

◆ rpos

v2s32 RenderingCoreSideBySide::rpos
protected

Referenced by drawAll(), and initTextures().


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