1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-06 09:39:49 +00:00
OpenMW/apps/opencs/view/render/lighting.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
678 B
C++
Raw Normal View History

2014-03-23 15:14:26 +01:00
#ifndef OPENCS_VIEW_LIGHTING_H
#define OPENCS_VIEW_LIGHTING_H
2015-03-28 21:26:16 +01:00
#include <osg/ref_ptr>
namespace osg
{
class Vec4f;
2015-03-28 21:26:16 +01:00
class LightSource;
class Group;
2014-03-23 15:14:26 +01:00
}
namespace CSVRender
{
class Lighting
{
public:
2020-11-13 11:39:47 +04:00
Lighting()
: mRootNode(nullptr)
2022-09-22 21:26:05 +03:00
{
}
2014-03-23 15:14:26 +01:00
virtual ~Lighting();
2020-11-13 11:39:47 +04:00
virtual void activate(osg::Group* rootNode, bool isExterior) = 0;
2014-03-23 15:14:26 +01:00
virtual void deactivate() = 0;
2014-03-23 15:14:26 +01:00
virtual osg::Vec4f getAmbientColour(osg::Vec4f* defaultAmbient) = 0;
2015-03-28 21:26:16 +01:00
protected:
void updateDayNightMode(int index);
osg::ref_ptr<osg::LightSource> mLightSource;
osg::Group* mRootNode;
2014-03-23 15:14:26 +01:00
};
}
#endif