diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-10-01 20:35:59 +0300 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-10-01 20:35:59 +0300 |
commit | d61601289110b0e406e70bf65ced2c4a1e110760 (patch) | |
tree | 6a82755b7a9c249c621861b2402cdb96092e3728 /indra/newview/lldrawfrustum.h | |
parent | a8e56e67c3545cf857f80e81b3e98a278224f421 (diff) |
SL-6109 Implemented LLDrawFrustum
Diffstat (limited to 'indra/newview/lldrawfrustum.h')
-rw-r--r-- | indra/newview/lldrawfrustum.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/indra/newview/lldrawfrustum.h b/indra/newview/lldrawfrustum.h new file mode 100644 index 0000000000..f6f62d737c --- /dev/null +++ b/indra/newview/lldrawfrustum.h @@ -0,0 +1,55 @@ +/** +* @file lldrawfrustum.h +* @brief Header file for lldrawfrustum +* +* $LicenseInfo:firstyear=2019&license=viewerlgpl$ +* Second Life Viewer Source Code +* Copyright (C) 2019, Linden Research, Inc. +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; +* version 2.1 of the License only. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +* +* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA +* $/LicenseInfo$ +*/ +#ifndef LL_LLDRAWFRUSTUM_H +#define LL_LLDRAWFRUSTUM_H + +#include "llview.h" + +class LLDrawFrustum +{ +public: + LLDrawFrustum(); + LLDrawFrustum(LLView *origin); +protected: + + // Draw's a cone from origin to derived view or floater + // @derived_local_rect derived flaoter's local rect + // @droot_view usually it is a derived floater + // @drag_handle floater's drag handle getDragHandle() + void drawFrustum(const LLRect &derived_local_rect, const LLView *root_view, const LLView *drag_handle, bool has_focus); + + void setFrustumOrigin(LLView *origin); +private: + + LLHandle <LLView> mFrustumOrigin; + F32 mContextConeOpacity; + F32 mContextConeInAlpha; + F32 mContextConeOutAlpha; + F32 mContextConeFadeTime; +}; + +#endif // LL_LLDRAWFRUSTUM_H + |