1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 13:53:53 +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 14:14:26 +00:00
#ifndef OPENCS_VIEW_LIGHTING_H
#define OPENCS_VIEW_LIGHTING_H
2015-03-28 20:26:16 +00:00
#include <osg/ref_ptr>
namespace osg
{
class Vec4f;
2015-03-28 20:26:16 +00:00
class LightSource;
class Group;
2014-03-23 14:14:26 +00:00
}
namespace CSVRender
{
class Lighting
{
public:
2020-11-13 07:39:47 +00:00
Lighting()
: mRootNode(nullptr)
2022-09-22 18:26:05 +00:00
{
}
2014-03-23 14:14:26 +00:00
virtual ~Lighting();
2020-11-13 07:39:47 +00:00
virtual void activate(osg::Group* rootNode, bool isExterior) = 0;
2014-03-23 14:14:26 +00:00
virtual void deactivate() = 0;
2014-03-23 14:14:26 +00:00
virtual osg::Vec4f getAmbientColour(osg::Vec4f* defaultAmbient) = 0;
2015-03-28 20:26:16 +00:00
protected:
void updateDayNightMode(int index);
osg::ref_ptr<osg::LightSource> mLightSource;
osg::Group* mRootNode;
2014-03-23 14:14:26 +00:00
};
}
#endif