/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #pragma once #ifndef _MGSPOTLIGHT_HH_ #define _MGSPOTLIGHT_HH_ #include "mgGL/PointLight.h" /** @addtogroup GLAttrib * @{ */ ///A directional light source. ///Because MGSpotLight is subclassed from MGPointLight, ///MGSpotLight can be positioned in a world. ///The light emanates as a cone; the axis of the cone(m_direction) specifies the direction ///of the spot light. class MG_DLL_DECLR MGSpotLight : public MGPointLight{ public: /// Field enums enum { DIRECTION=1, EXPONENT, CUT_OFF_ANGLE }; //////////// Constructors //////////////// MGSpotLight(); MGSpotLight( float intensity, ///