aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_particles.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-04-08 15:52:22 +0200
committersfan5 <sfan5@live.de>2022-05-02 20:54:55 +0200
commit5362f472ff75ffe1885b54d09f22faa85284f817 (patch)
tree3a1c4ea116f4ad16b3a7960e428a725e8b173486 /src/script/lua_api/l_particles.cpp
parent41e79d902d536f31b7b5fe2fb63a7272ce38d437 (diff)
Remove some unused variable from Lua class wrappers
Diffstat (limited to 'src/script/lua_api/l_particles.cpp')
0 files changed, 0 insertions, 0 deletions
om">*/ #include "stereo.h" #include "client/camera.h" #include "constants.h" #include "settings.h" RenderingCoreStereo::RenderingCoreStereo( IrrlichtDevice *_device, Client *_client, Hud *_hud) : RenderingCore(_device, _client, _hud) { eye_offset = BS * g_settings->getFloat("3d_paralax_strength"); } void RenderingCoreStereo::beforeDraw() { cam = camera->getCameraNode(); base_transform = cam->getRelativeTransformation(); } void RenderingCoreStereo::useEye(bool right) { core::matrix4 move; move.setTranslation( core::vector3df(right ? eye_offset : -eye_offset, 0.0f, 0.0f)); cam->setPosition((base_transform * move).getTranslation()); } void RenderingCoreStereo::resetEye() { cam->setPosition(base_transform.getTranslation()); } void RenderingCoreStereo::renderBothImages() { useEye(false); draw3D(); resetEye(); useEye(true); draw3D(); resetEye(); }